Slide 10
Slide 10 text
URLมΘΓ·ͨ͠
• pushNamedͬͨΒແࣄมΘΓ·ͨ͠
https://hiko1129.github.io/flutter-basic-layout/#/
MaterialApp(
initialRoute: '/',
routes: {
'/': (context) => FirstPage(),
'/second': (context) => SecondPage(),
},
);
// …
onPressed: () {
Navigator.pushNamed(context, ‘/second’)
}
// …