Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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