Revised Drawer Header (#4160)
This commit is contained in:
@@ -126,7 +126,7 @@ class CardCollectionState extends State<CardCollection> {
|
||||
child: new IconTheme(
|
||||
data: const IconThemeData(color: Colors.black),
|
||||
child: new Block(children: <Widget>[
|
||||
new DrawerHeader(child: new Text('Options')),
|
||||
new DrawerHeader(content: new Center(child: new Text('Options'))),
|
||||
buildDrawerCheckbox("Make card labels editable", _editable, _toggleEditable),
|
||||
buildDrawerCheckbox("Snap fling scrolls to center", _snapToCenter, _toggleSnapToCenter),
|
||||
buildDrawerCheckbox("Fixed size cards", _fixedSizeCards, _toggleFixedSizeCards),
|
||||
|
||||
@@ -85,7 +85,7 @@ class PageableListAppState extends State<PageableListApp> {
|
||||
Widget _buildDrawer() {
|
||||
return new Drawer(
|
||||
child: new Block(children: <Widget>[
|
||||
new DrawerHeader(child: new Text('Options')),
|
||||
new DrawerHeader(content: new Center(child: new Text('Options'))),
|
||||
new DrawerItem(
|
||||
icon: Icons.more_horiz,
|
||||
selected: scrollDirection == Axis.horizontal,
|
||||
|
||||
Reference in New Issue
Block a user