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) {
|
Widget build(BuildContext context) {
|
||||||
return new Scaffold(
|
return new Scaffold(
|
||||||
toolbar: buildToolBar(context),
|
toolBar: buildToolBar(context),
|
||||||
body: buildBody(context),
|
body: buildBody(context),
|
||||||
floatingActionButton: buildFloatingActionButton(context)
|
floatingActionButton: buildFloatingActionButton(context)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ class MineDiggerState extends State<MineDigger> {
|
|||||||
return new Title(
|
return new Title(
|
||||||
title: 'Mine Digger',
|
title: 'Mine Digger',
|
||||||
child: new Scaffold(
|
child: new Scaffold(
|
||||||
toolbar: buildToolBar(context),
|
toolBar: buildToolBar(context),
|
||||||
body: new Container(
|
body: new Container(
|
||||||
child: new Center(child: board),
|
child: new Center(child: board),
|
||||||
decoration: new BoxDecoration(backgroundColor: Colors.grey[50])
|
decoration: new BoxDecoration(backgroundColor: Colors.grey[50])
|
||||||
|
|||||||
Reference in New Issue
Block a user