mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 12:28:03 +08:00
Adds checking for trailling commas on the project (#670)
* Testing a new linter option for trailling commas * Checking trailling commas on linter
This commit is contained in:
@ -13,18 +13,20 @@ class MyGameApp extends StatelessWidget {
|
||||
return MaterialApp(routes: {
|
||||
'/': (BuildContext context) => Column(children: [
|
||||
ElevatedButton(
|
||||
child: const Text('Game'),
|
||||
onPressed: () {
|
||||
Navigator.of(context).pushNamed('/game');
|
||||
}),
|
||||
child: const Text('Game'),
|
||||
onPressed: () {
|
||||
Navigator.of(context).pushNamed('/game');
|
||||
},
|
||||
),
|
||||
ElevatedButton(
|
||||
child: const Text('BaseGame'),
|
||||
onPressed: () {
|
||||
Navigator.of(context).pushNamed('/base_game');
|
||||
})
|
||||
child: const Text('BaseGame'),
|
||||
onPressed: () {
|
||||
Navigator.of(context).pushNamed('/base_game');
|
||||
},
|
||||
),
|
||||
]),
|
||||
'/game': (BuildContext context) => GameWidget(game: MyGame()),
|
||||
'/base_game': (BuildContext context) => GameWidget(game: MyBaseGame())
|
||||
'/base_game': (BuildContext context) => GameWidget(game: MyBaseGame()),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user