Skip to content

Instantly share code, notes, and snippets.

@luizmarcus
Created November 29, 2020 00:00
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 luizmarcus/5431f7ceab4ec877e91b8f7834d71989 to your computer and use it in GitHub Desktop.
Save luizmarcus/5431f7ceab4ec877e91b8f7834d71989 to your computer and use it in GitHub Desktop.
Drawer(
child: ListView(
padding: EdgeInsets.zero,
children: <Widget>[
DrawerHeader(
child: Text('Cabeçalho'),
decoration: BoxDecoration(
color: Colors.blue,
),
),
ListTile(
title: Text('Item 1'),
selected: 0 == _selectedIndex,
onTap: () {
_onSelectItem(0);
},
),
ListTile(
title: Text('Item 2'),
selected: 1 == _selectedIndex,
onTap: () {
_onSelectItem(1);
},
),
ExpansionTile(
title: Text("Expansion Title"),
children: <Widget>[
InkWell(
child: Row(
mainAxisSize: MainAxisSize.max,
children: [
Padding(
padding: const EdgeInsets.all(18),
child: Text("children 1")),
],
),
onTap: (){
print("children 1");
},
),
InkWell(
child: Row(
mainAxisSize: MainAxisSize.max,
children: [
Padding(
padding: const EdgeInsets.all(18),
child: Text("children 2")),
],
),
onTap: (){
print("children 2");
},
),
],
)
],
),
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment