Skip to content

Instantly share code, notes, and snippets.

@fabiomsr
Created December 8, 2019 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabiomsr/0bf6948917af3d7309c311a425d9b966 to your computer and use it in GitHub Desktop.
Save fabiomsr/0bf6948917af3d7309c311a425d9b966 to your computer and use it in GitHub Desktop.
return Drawer(
child: ListView(
padding: EdgeInsets.zero,
children: <Widget>[
_createHeader(),
_createDrawerItem(icon: Icons.contacts, text: 'Contacts', onTap: () => ...)
Divider(),
_createDrawerItem(icon: Icons.event, text: 'Events', onTap: () => ...),
ListTile(
title: Text('My Footer'),
onTap: () {},
),
],
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment