From 0844233deb7411b035585c08fdccf40f2bdf505d Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Thu, 26 Nov 2015 10:40:06 -0800 Subject: [PATCH] Add missing types for list literals --- .../lib/demo/selection_controls_demo.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/material_gallery/lib/demo/selection_controls_demo.dart b/examples/material_gallery/lib/demo/selection_controls_demo.dart index ec0dd67cf1e..baa64738f5e 100644 --- a/examples/material_gallery/lib/demo/selection_controls_demo.dart +++ b/examples/material_gallery/lib/demo/selection_controls_demo.dart @@ -34,22 +34,22 @@ class _SelectionControlsDemoState extends State { } Widget build(BuildContext context) { - return new Column([ - new Row([ + return new Column([ + new Row([ new Checkbox(value: _checkboxValue, onChanged: _setCheckboxValue), new Checkbox(value: false), // Disabled ], justifyContent: FlexJustifyContent.spaceAround), - new Row([0, 1, 2].map((int i) { + new Row([0, 1, 2].map((int i) { return new Radio( value: i, groupValue: _radioValue, onChanged: _setRadioValue ); }).toList(), justifyContent: FlexJustifyContent.spaceAround), - new Row([0, 1].map((int i) { + new Row([0, 1].map((int i) { return new Radio(value: i, groupValue: 0); // Disabled }).toList(), justifyContent: FlexJustifyContent.spaceAround), - new Row([ + new Row([ new Switch(value: _switchValue, onChanged: _setSwitchValue), new Switch(value: false), // Disabled ], justifyContent: FlexJustifyContent.spaceAround),