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:
Erick
2021-02-18 11:31:45 -03:00
committed by GitHub
parent e712d423dd
commit 19ff80a0eb
17 changed files with 254 additions and 186 deletions

View File

@ -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()),
});
}
}