-
-
Save ijoschek/aea8e84a9020c9204611fe6260e15636 to your computer and use it in GitHub Desktop.
flutter_nav_tut
This file contains 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 _MainPageState extends State<MainPage> { | |
// ... | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
// ... | |
drawer: Drawer( | |
child: ListView( | |
children: <Widget>[ | |
// ... | |
ListTile( | |
title: Text('Routed Navigation'), | |
trailing: Icon(Icons.arrow_forward), | |
onTap: () { | |
Navigator.of(context).pop(); | |
Navigator.pushNamed(context, '/newPage'); | |
}, | |
), | |
// Here will be some Code | |
], | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment