xxxxxxxxxx
endDrawer: Drawer(
child: Column(
children: <Widget>[
new Text('Notifications',
style: new TextStyle(
fontSize: 24.0,
fontWeight: FontWeight.bold,
),
textAlign: TextAlign.center,
),
Flexible(
child: ListView(
children: List.generate(20, (i)=>ListTile(
title: Text('Notification $i'),
)),
),
)
],
),
),
xxxxxxxxxx
return Drawer(
child: Expanded(
child: Column(
children: <Widget>[
AppBar(title: Text('Test'),),
Text('Example 1:'),
ListView.separated(
scrollDirection: Axis.vertical,
shrinkWrap: true,
itemCount: _brands.length,
itemBuilder: (BuildContext context, int index) {
return ListTile(
.);
},
separatorBuilder: (BuildContext context, int index) =>
const Divider(height: 5),
),
Text('Another heading')
],
),
),
);
Run code snippetHide results