no message
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user