mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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:
parent
249dc8aff5
commit
bfe332c4c2
@ -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
|
||||
),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user