Simplify Scaffold

Rather than using a custom render object, we can just use a Stack.
This commit is contained in:
Adam Barth
2015-10-05 22:28:09 -07:00
parent df719bde8d
commit 87631faae2
2 changed files with 2 additions and 2 deletions

View File

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

View File

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