Merge pull request #1503 from abarth/simplify_scaffold
Simplify Scaffold
This commit is contained in:
@@ -81,7 +81,7 @@ class AddressBookHome extends StatelessComponent {
|
||||
|
||||
Widget build(BuildContext context) {
|
||||
return new Scaffold(
|
||||
toolbar: buildToolBar(context),
|
||||
toolBar: buildToolBar(context),
|
||||
body: buildBody(context),
|
||||
floatingActionButton: buildFloatingActionButton(context)
|
||||
);
|
||||
|
||||
@@ -182,7 +182,7 @@ class MineDiggerState extends State<MineDigger> {
|
||||
return new Title(
|
||||
title: 'Mine Digger',
|
||||
child: new Scaffold(
|
||||
toolbar: buildToolBar(context),
|
||||
toolBar: buildToolBar(context),
|
||||
body: new Container(
|
||||
child: new Center(child: board),
|
||||
decoration: new BoxDecoration(backgroundColor: Colors.grey[50])
|
||||
|
||||
Reference in New Issue
Block a user