Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: sky/examples/stocks2/lib/stock_app.dart

Issue 1152163007: Fix scaffold to work for the toolbar. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/sdk/lib/framework/components2/scaffold.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/stocks2/lib/stock_app.dart
diff --git a/sky/examples/stocks2/lib/stock_app.dart b/sky/examples/stocks2/lib/stock_app.dart
index 03c33f837d84570ab545013e62027631168863d7..cb65d858fe2112840e67143e9306803fac902c27 100644
--- a/sky/examples/stocks2/lib/stock_app.dart
+++ b/sky/examples/stocks2/lib/stock_app.dart
@@ -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
- // );
+ );
}
}
« no previous file with comments | « no previous file | sky/sdk/lib/framework/components2/scaffold.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698