mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
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
This commit is contained in:
parent
a03a911e7c
commit
9717a17371
@ -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),
|
||||||
|
// ]
|
||||||
|
// )
|
||||||
|
// ]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user