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), ]