From 3783ad3717033fb473b4301de185b0a283c59552 Mon Sep 17 00:00:00 2001 From: Hixie Date: Wed, 3 Jun 2015 14:50:32 -0700 Subject: [PATCH] Fix scaffold to work for the toolbar. Also, make the scaffold code more generic (with slots in a map, instead of dedicated members for each slot). This may eventually benefit from being split into a general "multislot" superclass and a scaffold-specific subclass, but for now it'll do. R=abarth@chromium.org Review URL: https://codereview.chromium.org/1152163007 --- examples/stocks2/lib/stock_app.dart | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/examples/stocks2/lib/stock_app.dart b/examples/stocks2/lib/stock_app.dart index 03c33f837d..cb65d858fe 100644 --- a/examples/stocks2/lib/stock_app.dart +++ b/examples/stocks2/lib/stock_app.dart @@ -206,22 +206,15 @@ class StocksApp extends App { UINode build() { // List overlays = []; // addMenuToOverlays(overlays); - return new Container( - child: new BlockContainer(children: [buildToolBar()]), - decoration: new BoxDecoration( - backgroundColor: const sky.Color(0xFFFFFFFF) - ) - ); - - // return new Scaffold( - // toolbar: _isSearching ? buildSearchBar() : buildToolBar() + return new Scaffold( + toolbar: _isSearching ? buildSearchBar() : buildToolBar() // , // body: new Stocklist(stocks: _stocks, query: _searchQuery), // floatingActionButton: new FloatingActionButton( // content: new Icon(type: 'content/add_white', size: 24), level: 3), // drawer: _drawerShowing ? buildDrawer() : null, // overlays: overlays - // ); + ); } }