mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 04:18:25 +08:00
added ensureInitialized call on examples that were not working without it
This commit is contained in:
@ -11,6 +11,7 @@ import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
final Size size = await Flame.util.initialDimensions();
|
||||
final MyGame game = MyGame(size);
|
||||
runApp(game.widget);
|
||||
|
||||
Reference in New Issue
Block a user