Skip to content

Commit a28f12e

Browse files
committed
Use GameWidget.controlled
1 parent 6075fe4 commit a28f12e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bricks/example/__brick__/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import 'package:flutter/material.dart';
99
final _rng = Random();
1010

1111
void main() {
12-
runApp(GameWidget(game: MyGame()));
12+
runApp(const GameWidget.controlled(gameFactory: MyGame.new));
1313
}
1414

1515
class MyGame extends FlameGame<MyWorld> {

lib/templates/bricks/example_bundle.dart

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)