Reputation: 4828
i want to put icons in the left hand side of drawer's children like this photo
is there any specific widgets to do something like this?
my drawer code is this
Drawer(
child: ListView(
padding: EdgeInsets.zero,
children: <Widget>[
DrawerHeader(
child: Text('Drawer Header'),
decoration: BoxDecoration(
color: Colors.blue,
),
),
ListTile(
title: Text('forms'),
onTap: () { //and rest of the code
Upvotes: -1
Views: 1180
Reputation: 5736
Use leading
property of ListTile
widget to add an Icon
.
ListTile(
onTap: () {},
leading: Icon(Icons.add),
title: Text('Add'),
);
Upvotes: 1