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

Unified Diff: sky/examples/stocks-fn/lib/stock_app.dart

Issue 1027653002: [Effen] add StyleNode (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: moar Created 5 years, 9 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/framework/components/fixed_height_scrollable.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/stocks-fn/lib/stock_app.dart
diff --git a/sky/examples/stocks-fn/lib/stock_app.dart b/sky/examples/stocks-fn/lib/stock_app.dart
index f79c26ad182c8e9b01c9d78b7df51b3d43e68aa9..87f5e6dca7706b6947b6b880276559e4e569a808 100644
--- a/sky/examples/stocks-fn/lib/stock_app.dart
+++ b/sky/examples/stocks-fn/lib/stock_app.dart
@@ -40,6 +40,10 @@ class StocksApp extends App {
${typography.white.title};'''
);
+ static Style _stocklistHeight = new Style('''
+ flex: 1;'''
+ );
+
List<Stock> _sortedStocks;
bool _isSearching = false;
bool _isShowingMenu = false;
@@ -137,7 +141,9 @@ class StocksApp extends App {
]
);
- var list = new Stocklist(stocks: _sortedStocks, query: _searchQuery);
+ var list = new StyleNode(
+ new Stocklist(stocks: _sortedStocks, query: _searchQuery),
+ _stocklistHeight);
var fab = new FloatingActionButton(content: new Icon(
type: 'content/add_white', size: 24), level: 3);
« no previous file with comments | « no previous file | sky/framework/components/fixed_height_scrollable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698