From d32ec33c3ef1aef7052d89cc099fdeb99dd10a65 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Tue, 17 Mar 2015 19:21:36 -0700 Subject: [PATCH] Add a menu to the stocks app We should probably move this menu into a view for an individual stock, but for now add it to the main stock screen. R=ojan@chromium.org, eseidel@chromium.org Review URL: https://codereview.chromium.org/1008003007 --- .../examples/widgets-fn/widgets_app.dart | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/engine/src/flutter/examples/widgets-fn/widgets_app.dart b/engine/src/flutter/examples/widgets-fn/widgets_app.dart index 6a24237033b..2c1e8ca304c 100644 --- a/engine/src/flutter/examples/widgets-fn/widgets_app.dart +++ b/engine/src/flutter/examples/widgets-fn/widgets_app.dart @@ -5,7 +5,6 @@ import '../../framework/fn.dart'; import '../../framework/components/button.dart'; import '../../framework/components/popup_menu.dart'; -import '../../framework/components/popup_menu_item.dart'; class WidgetsApp extends App { static final Style _menuStyle = new Style(''' @@ -22,14 +21,14 @@ class WidgetsApp extends App { style: _menuStyle, children: [ new PopupMenu( - children: [ - new PopupMenuItem(key: '1', children: [new Text('People & options')]), - new PopupMenuItem(key: '2', children: [new Text('New group conversation')]), - new PopupMenuItem(key: '3', children: [new Text('Turn history off')]), - new PopupMenuItem(key: '4', children: [new Text('Archive')]), - new PopupMenuItem(key: '5', children: [new Text('Delete')]), - new PopupMenuItem(key: '6', children: [new Text('Un-merge SMS')]), - new PopupMenuItem(key: '7', children: [new Text('Help & feeback')]), + items: [ + [new Text('People & options')], + [new Text('New group conversation')], + [new Text('Turn history off')], + [new Text('Archive')], + [new Text('Delete')], + [new Text('Un-merge SMS')], + [new Text('Help & feeback')], ], level: 4), ]