Migrate RaisedButton -> ElevatedButton (#654)

* Migrate RaisedButton to ElevatedButton

* Add changelog entry
This commit is contained in:
Lukas Klingsbo
2021-02-10 00:22:03 +01:00
committed by GitHub
parent d98a1ede44
commit b1fa449dae
2 changed files with 3 additions and 2 deletions

View File

@ -12,12 +12,12 @@ class MyGameApp extends StatelessWidget {
Widget build(BuildContext context) {
return MaterialApp(routes: {
'/': (BuildContext context) => Column(children: [
RaisedButton(
ElevatedButton(
child: const Text('Game'),
onPressed: () {
Navigator.of(context).pushNamed('/game');
}),
RaisedButton(
ElevatedButton(
child: const Text('BaseGame'),
onPressed: () {
Navigator.of(context).pushNamed('/base_game');