Commit 686123e1 authored by Hixie's avatar Hixie

Add overlays back to stocks2.

Except that nothing actually uses these now so it's a no-op really.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1157243011
parent 3783ad37
...@@ -191,7 +191,7 @@ class StocksApp extends App { ...@@ -191,7 +191,7 @@ class StocksApp extends App {
// _searchBarStyle); // _searchBarStyle);
} }
// void addMenuToOverlays(List<UINode> overlays) { void addMenuToOverlays(List<UINode> overlays) {
// if (_menuController == null) // if (_menuController == null)
// return; // return;
// overlays.add(new ModalOverlay( // overlays.add(new ModalOverlay(
...@@ -201,20 +201,22 @@ class StocksApp extends App { ...@@ -201,20 +201,22 @@ class StocksApp extends App {
// onAutorefreshChanged: _handleAutorefreshChanged // onAutorefreshChanged: _handleAutorefreshChanged
// )], // )],
// onDismiss: _handleMenuHide)); // onDismiss: _handleMenuHide));
// } }
UINode build() { UINode build() {
// List<UINode> overlays = []; List<UINode> overlays = [
// addMenuToOverlays(overlays); new Scaffold(
return new Scaffold(
toolbar: _isSearching ? buildSearchBar() : buildToolBar() toolbar: _isSearching ? buildSearchBar() : buildToolBar()
// , // ,
// body: new Stocklist(stocks: _stocks, query: _searchQuery), // body: new Stocklist(stocks: _stocks, query: _searchQuery),
// floatingActionButton: new FloatingActionButton( // floatingActionButton: new FloatingActionButton(
// content: new Icon(type: 'content/add_white', size: 24), level: 3), // content: new Icon(type: 'content/add_white', size: 24),
// drawer: _drawerShowing ? buildDrawer() : null, // level: 3),
// overlays: overlays // drawer: _drawerShowing ? buildDrawer() : null
); ),
];
addMenuToOverlays(overlays);
return new StackContainer(children: overlays);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment