From 686123e1177c0da25b703ab5883727b08eee5669 Mon Sep 17 00:00:00 2001 From: Hixie Date: Wed, 3 Jun 2015 15:03:34 -0700 Subject: [PATCH] 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 --- examples/stocks2/lib/stock_app.dart | 46 +++++++++++++++-------------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/examples/stocks2/lib/stock_app.dart b/examples/stocks2/lib/stock_app.dart index cb65d858fe..d26eef43a5 100644 --- a/examples/stocks2/lib/stock_app.dart +++ b/examples/stocks2/lib/stock_app.dart @@ -191,30 +191,32 @@ class StocksApp extends App { // _searchBarStyle); } - // void addMenuToOverlays(List overlays) { - // if (_menuController == null) - // return; - // overlays.add(new ModalOverlay( - // children: [new StockMenu( - // controller: _menuController, - // autorefresh: _autorefresh, - // onAutorefreshChanged: _handleAutorefreshChanged - // )], - // onDismiss: _handleMenuHide)); - // } + void addMenuToOverlays(List overlays) { + // if (_menuController == null) + // return; + // overlays.add(new ModalOverlay( + // children: [new StockMenu( + // controller: _menuController, + // autorefresh: _autorefresh, + // onAutorefreshChanged: _handleAutorefreshChanged + // )], + // onDismiss: _handleMenuHide)); + } UINode build() { - // List overlays = []; - // addMenuToOverlays(overlays); - 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 - ); + List overlays = [ + 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 + ), + ]; + addMenuToOverlays(overlays); + return new StackContainer(children: overlays); } }