no message

This commit is contained in:
gem
2025-02-07 10:39:51 +08:00
parent f5ae749849
commit cacb3d6e75
3 changed files with 21 additions and 21 deletions

View File

@@ -12,7 +12,7 @@ abstract class CocosWidgetController {
/// Mainly for internal use when instantiating a [CocosWidgetController] passed
/// in [CocosWidget.onCocosCreated] callback.
static Future<CocosWidgetController> init(
int id, dynamic CocosWidgetState) async {
int id, dynamic cocosWidgetState) async {
throw UnimplementedError('init() has not been implemented.');
}

View File

@@ -130,7 +130,7 @@ class CocosWidget extends StatefulWidget {
}
class _CocosWidgetState extends State<CocosWidget> {
late int _CocosId;
late int _cocosId;
CocosWidgetController? _controller;
@@ -139,9 +139,9 @@ class _CocosWidgetState extends State<CocosWidget> {
super.initState();
if (!kIsWeb) {
_CocosId = _nextCocosCreationId++;
_cocosId = _nextCocosCreationId++;
} else {
_CocosId = 0;
_cocosId = 0;
}
}
@@ -161,7 +161,7 @@ class _CocosWidgetState extends State<CocosWidget> {
@override
Widget build(BuildContext context) {
final Map<String, dynamic> CocosOptions = <String, dynamic>{
final Map<String, dynamic> cocosOptions = <String, dynamic>{
'fullscreen': widget.fullscreen,
'uiLevel': widget.uiLevel,
'hideStatus': widget.hideStatus,
@@ -175,9 +175,9 @@ class _CocosWidgetState extends State<CocosWidget> {
}
return CocosWidgetPlatform.instance.buildViewWithTextDirection(
_CocosId,
_cocosId,
_onPlatformViewCreated,
cocosOptions: CocosOptions,
cocosOptions: cocosOptions,
textDirection: widget.layoutDirection ??
Directionality.maybeOf(context) ??
TextDirection.ltr,