Commit 9717a173 authored by Eric Seidel's avatar Eric Seidel

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
parent a03a911e
...@@ -13,29 +13,35 @@ class WidgetsApp extends App { ...@@ -13,29 +13,35 @@ class WidgetsApp extends App {
top: 200px; top: 200px;
left: 200px;'''); left: 200px;''');
PopupMenuController controller;
UINode build() { UINode build() {
return new Container( return new Container(
children: [ children: [
new Button(key: 'Go', content: new Text('Go'), level: 1), new Button(key: 'Go', content: new Text('Go'), level: 1),
new Button(key: 'Back', content: new Text('Back'), level: 3), new Button(key: 'Back', content: new Text('Back'), level: 3),
new Input(), new Input()
new Container(
style: _menuStyle, // PopupMenu requires a PopupMenuController and should be wired up
children: [ // to a button to create the controller only when the menu is open, etc.
new PopupMenu( // new Container(
items: [ // style: _menuStyle,
[new Text('People & options')], // children: [
[new Text('New group conversation')], // new PopupMenu(
[new Text('Turn history off')], // controller: controller,
[new Text('Archive')], // items: [
[new Text('Delete')], // [new Text('People & options')],
[new Text('Un-merge SMS')], // [new Text('New group conversation')],
[new Text('Help & feeback')], // [new Text('Turn history off')],
], // [new Text('Archive')],
level: 4), // [new Text('Delete')],
] // [new Text('Un-merge SMS')],
) // [new Text('Help & feeback')],
] // ],
// level: 4),
// ]
// )
// ]
); );
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment