From bfe332c4c2a8b8317b4504a03f3fbe48fd56e717 Mon Sep 17 00:00:00 2001 From: Hixie Date: Tue, 16 Jun 2015 09:41:05 -0700 Subject: [PATCH] Make PopupMenuItem take a single child instead of an implicitly-flex list of children. TBR=abarth Review URL: https://codereview.chromium.org/1187463013. --- examples/stocks2/lib/stock_menu.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/stocks2/lib/stock_menu.dart b/examples/stocks2/lib/stock_menu.dart index bbf55f89c8d..2b9df0b8940 100644 --- a/examples/stocks2/lib/stock_menu.dart +++ b/examples/stocks2/lib/stock_menu.dart @@ -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 ),