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

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

Issue 1187463013: Make PopupMenuItem take a single child instead of an implicitly-flex list of children. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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/widgets/popup_menu.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/stocks2/lib/stock_menu.dart
diff --git a/sky/examples/stocks2/lib/stock_menu.dart b/sky/examples/stocks2/lib/stock_menu.dart
index bbf55f89c8da865a3eb8397dd419dc7c068d0163..2b9df0b89406b21e1d9c01583b0d2b252c9c4a47 100644
--- a/sky/examples/stocks2/lib/stock_menu.dart
+++ b/sky/examples/stocks2/lib/stock_menu.dart
@@ -30,9 +30,9 @@ class StockMenu extends Component {
child: new PopupMenu(
controller: controller,
items: [
- [new Text('Add stock')],
- [new Text('Remove stock')],
- [new Flexible(child: new Text('Autorefresh')), checkbox],
+ new Text('Add stock'),
+ new Text('Remove stock'),
+ new Flex([new Flexible(child: new Text('Autorefresh')), checkbox]),
],
level: 4
),
« no previous file with comments | « no previous file | sky/sdk/lib/widgets/popup_menu.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698