diff --git a/game_template/lib/main.dart b/game_template/lib/main.dart index a5bbdee38..8b793aa0b 100644 --- a/game_template/lib/main.dart +++ b/game_template/lib/main.dart @@ -133,7 +133,7 @@ class MyApp extends StatelessWidget { routes: [ GoRoute( path: 'play', - pageBuilder: (context, state) => buildMyTransition( + pageBuilder: (context, state) => buildMyTransition( child: const LevelSelectionScreen( key: Key('level selection')), color: context.watch().backgroundLevelSelection, @@ -145,7 +145,7 @@ class MyApp extends StatelessWidget { final levelNumber = int.parse(state.params['level']!); final level = gameLevels .singleWhere((e) => e.number == levelNumber); - return buildMyTransition( + return buildMyTransition( child: PlaySessionScreen( level, key: const Key('play session'), @@ -160,7 +160,7 @@ class MyApp extends StatelessWidget { final map = state.extra! as Map; final score = map['score'] as Score; - return buildMyTransition( + return buildMyTransition( child: WinGameScreen( score: score, key: const Key('win game'),