Last active
December 14, 2019 06:19
-
-
Save juliuscanute/bfbaea0ebb76aecb1b13bf5f34c92752 to your computer and use it in GitHub Desktop.
Navigation Setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class _MyAppState extends State<MyApp> { | |
| @override | |
| Widget build(BuildContext context) { | |
| //... | |
| child: MaterialApp( | |
| navigatorKey: NavigatorHolder.navigatorKey, | |
| home: MyHomePage(), | |
| routes: { | |
| '/all-emotions': (BuildContext context) => MyHomePage(), | |
| '/list-emotions': (BuildContext context) => EmotionsList(), | |
| '/add-emotion': (BuildContext context) => AddDetail(), | |
| '/view-saved-emotion': (BuildContext context) => ViewDetail(), | |
| }, | |
| ), | |
| ); | |
| } | |
| //... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment