Last active
October 28, 2019 21:14
-
-
Save lamberger/aae9e90d27f5c2deb0e8fcf574b56a9d to your computer and use it in GitHub Desktop.
Simple drawer
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
| drawer: Drawer( | |
| child: ListView( | |
| padding: EdgeInsets.zero, | |
| children: <Widget>[ | |
| DrawerHeader( | |
| decoration: BoxDecoration( | |
| gradient: LinearGradient( | |
| colors: <Color>[Colors.blue, Colors.amberAccent], | |
| ), | |
| ), | |
| child: Text('HEADER'), | |
| ), | |
| ListTile( | |
| title: Text('NUMOR ONE'), | |
| ), | |
| ListTile( | |
| title: Text('Gå till sida 1'), | |
| onTap: () { | |
| // Update the state of the app | |
| // Then close the drawer | |
| Navigator.pop(context); | |
| }, | |
| ), | |
| ], | |
| ), | |
| ), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment