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
This commit is contained in:
@@ -206,22 +206,15 @@ class StocksApp extends App {
|
||||
UINode build() {
|
||||
// List<UINode> 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
|
||||
// );
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user