Skip to content

Instantly share code, notes, and snippets.

@PeterHdd
Created February 25, 2020 09:41
Show Gist options
  • Select an option

  • Save PeterHdd/3c7b80b5f64d11e79d2e2185e11af558 to your computer and use it in GitHub Desktop.

Select an option

Save PeterHdd/3c7b80b5f64d11e79d2e2185e11af558 to your computer and use it in GitHub Desktop.
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