Make PopupMenuItem take a single child instead of an implicitly-flex list of children.

TBR=abarth

Review URL: https://codereview.chromium.org/1187463013.
This commit is contained in:
Hixie 2015-06-16 09:41:05 -07:00
parent 249dc8aff5
commit bfe332c4c2

View File

@ -30,9 +30,9 @@ class StockMenu extends Component {
child: new PopupMenu(
controller: controller,
items: [
[new Text('Add stock')],
[new Text('Remove stock')],
[new Flexible(child: new Text('Autorefresh')), checkbox],
new Text('Add stock'),
new Text('Remove stock'),
new Flex([new Flexible(child: new Text('Autorefresh')), checkbox]),
],
level: 4
),