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

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

Issue 1024083003: Use StyleNode in StockMenu (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 | « sky/engine/core/rendering/style/StyleBoxData.cpp ('k') | sky/framework/components/popup_menu.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_menu.dart
diff --git a/sky/examples/stocks-fn/lib/stock_menu.dart b/sky/examples/stocks-fn/lib/stock_menu.dart
index 65db00d3d93fc1f1ad9f14960716445fc1633671..4d54e8f6010861d6cd14445f60961c7b422333e3 100644
--- a/sky/examples/stocks-fn/lib/stock_menu.dart
+++ b/sky/examples/stocks-fn/lib/stock_menu.dart
@@ -17,18 +17,16 @@ class StockMenu extends Component {
StockMenu({Object key, this.controller}) : super(key: key);
Node build() {
- return new Container(
- style: _style,
- children: [
- new PopupMenu(
- controller: controller,
- items: [
- [new Text('Add stock')],
- [new Text('Remove stock')],
- [new Text('Help & feeback')],
- ],
- level: 4)
- ]
+ return new StyleNode(
+ new PopupMenu(
+ controller: controller,
+ items: [
+ [new Text('Add stock')],
+ [new Text('Remove stock')],
+ [new Text('Help & feeback')],
+ ],
+ level: 4),
+ _style
);
}
}
« no previous file with comments | « sky/engine/core/rendering/style/StyleBoxData.cpp ('k') | sky/framework/components/popup_menu.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698