Revised Drawer Header (#4160)
This commit is contained in:
@@ -32,7 +32,9 @@ class GalleryDrawer extends StatelessWidget {
|
||||
return new Drawer(
|
||||
child: new Block(
|
||||
children: <Widget>[
|
||||
new DrawerHeader(child: new Text('Flutter gallery')),
|
||||
new DrawerHeader(
|
||||
content: new Center(child: new Text('Flutter gallery'))
|
||||
),
|
||||
new DrawerItem(
|
||||
icon: Icons.brightness_5,
|
||||
onPressed: () { onThemeChanged(true); },
|
||||
|
||||
@@ -124,7 +124,7 @@ class StockHomeState extends State<StockHome> {
|
||||
Widget _buildDrawer(BuildContext context) {
|
||||
return new Drawer(
|
||||
child: new Block(children: <Widget>[
|
||||
new DrawerHeader(child: new Text('Stocks')),
|
||||
new DrawerHeader(content: new Center(child: new Text('Stocks'))),
|
||||
new DrawerItem(
|
||||
icon: Icons.assessment,
|
||||
selected: true,
|
||||
|
||||
Reference in New Issue
Block a user