From 9717a173713d65c78d8d30f5f90fdf783432ce98 Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Tue, 7 Apr 2015 11:17:26 -0700 Subject: [PATCH] Unbreak widgets_app.dart (by disabling PopupMenu for now) Also fix button.dart to include ink_well.dart. R=ojan@chromium.org Review URL: https://codereview.chromium.org/1058013003 --- examples/widgets/widgets_app.dart | 42 ++++++++++++++++++------------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/examples/widgets/widgets_app.dart b/examples/widgets/widgets_app.dart index da349111664..33d39caaaf8 100644 --- a/examples/widgets/widgets_app.dart +++ b/examples/widgets/widgets_app.dart @@ -13,29 +13,35 @@ class WidgetsApp extends App { top: 200px; left: 200px;'''); + PopupMenuController controller; + UINode build() { return new Container( children: [ new Button(key: 'Go', content: new Text('Go'), level: 1), new Button(key: 'Back', content: new Text('Back'), level: 3), - new Input(), - new Container( - style: _menuStyle, - children: [ - new PopupMenu( - 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), - ] - ) - ] + new Input() + + // PopupMenu requires a PopupMenuController and should be wired up + // to a button to create the controller only when the menu is open, etc. + // new Container( + // style: _menuStyle, + // children: [ + // new PopupMenu( + // controller: controller, + // 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), + // ] + // ) + // ] ); } }