Want to add a Expandable menu item inside navigation drawer in flutter? You have to pass the drawers child property a ListView, and in that ListView you can then use an ExpansionTile. That would look something like this:
1 2 3 4 5 6 7 8 9 10 | Drawer( child: ListView( children: <Widget>[ ExpansionTile( title: Text("Expansion Title"), children: <Widget>[Text("children 1"), Text("children 2")], ) ], ), ); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.