File tree Expand file tree Collapse file tree 3 files changed +1
-7
lines changed Expand file tree Collapse file tree 3 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,7 @@ class MyApp extends StatelessWidget {
7
7
@override
8
8
Widget build (BuildContext context) {
9
9
return MaterialApp (
10
- initialRoute: HomePage .id,
11
- routes: {
12
- HomePage .id : (context)=> HomePage (),
13
- DetailsPage .id : (context) => DetailsPage (),
14
- },
10
+ home: HomePage (),
15
11
);
16
12
}
17
13
}
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import 'package:poke_dex/utilities/colors.dart';
4
4
import 'package:fl_chart/fl_chart.dart' ;
5
5
6
6
class DetailsPage extends StatelessWidget {
7
- static final id = 'details' ;
8
7
final Pokemon pokemon;
9
8
DetailsPage ({this .pokemon});
10
9
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import 'package:poke_dex/utilities/colors.dart';
7
7
import 'package:url_launcher/url_launcher.dart' ;
8
8
9
9
class HomePage extends StatefulWidget {
10
- static const id = 'homepage' ;
11
10
12
11
@override
13
12
_HomePageState createState () => _HomePageState ();
You can’t perform that action at this time.
0 commit comments