Created
November 29, 2020 00:00
-
-
Save luizmarcus/5431f7ceab4ec877e91b8f7834d71989 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
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