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

Unified Diff: sky/examples/widgets-fn/widgets_app.dart

Issue 1008003007: Add a menu to the stocks app (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Tweak padding 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
Index: sky/examples/widgets-fn/widgets_app.dart
diff --git a/sky/examples/widgets-fn/widgets_app.dart b/sky/examples/widgets-fn/widgets_app.dart
index 6a24237033bfb2361fbeb42577d65478a2e39dbb..2c1e8ca304cce54d7e119a72d031303c21e98ddc 100644
--- a/sky/examples/widgets-fn/widgets_app.dart
+++ b/sky/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),
]

Powered by Google App Engine
This is Rietveld 408576698