Created
February 25, 2020 09:41
-
-
Save PeterHdd/3c7b80b5f64d11e79d2e2185e11af558 to your computer and use it in GitHub Desktop.
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
| return Drawer( | |
| child: ListView( | |
| padding: EdgeInsets.zero, | |
| children: <Widget>[ | |
| UserAccountsDrawerHeader( | |
| accountEmail: Text(name), | |
| accountName: Text(email), | |
| decoration: BoxDecoration( | |
| color: Colors.blue, | |
| ), | |
| ), | |
| ListTile( | |
| leading: new IconButton( | |
| icon: new Icon(Icons.home, color: Colors.black), | |
| onPressed: () => null, | |
| ), | |
| title: Text('Home'), | |
| onTap: () { | |
| print(widget.uid); | |
| Navigator.push( | |
| context, | |
| MaterialPageRoute( | |
| builder: (context) => Home(uid: widget.uid)), | |
| ); | |
| }, | |
| ), | |
| ListTile( | |
| leading: new IconButton( | |
| icon: new Icon(Icons.settings, color: Colors.black), | |
| onPressed: () => null, | |
| ), | |
| title: Text('Settings'), | |
| onTap: () { | |
| print(widget.uid); | |
| Navigator.push( | |
| context, | |
| MaterialPageRoute( | |
| builder: (context) => SettingsRoute(uid: widget.uid)), | |
| ); | |
| }, | |
| ), | |
| ], | |
| ), | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment