Revised Drawer Header (#4160)

This commit is contained in:
Hans Muller
2016-05-24 12:31:42 -07:00
parent e8a47b6d49
commit bacd3d2cb0
5 changed files with 26 additions and 18 deletions

View File

@@ -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),

View File

@@ -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,