Commit 0844233d authored by Adam Barth's avatar Adam Barth

Add missing types for list literals

parent 50b6bde8
...@@ -34,22 +34,22 @@ class _SelectionControlsDemoState extends State<SelectionControlsDemo> { ...@@ -34,22 +34,22 @@ class _SelectionControlsDemoState extends State<SelectionControlsDemo> {
} }
Widget build(BuildContext context) { Widget build(BuildContext context) {
return new Column([ return new Column(<Widget>[
new Row([ new Row(<Widget>[
new Checkbox(value: _checkboxValue, onChanged: _setCheckboxValue), new Checkbox(value: _checkboxValue, onChanged: _setCheckboxValue),
new Checkbox(value: false), // Disabled new Checkbox(value: false), // Disabled
], justifyContent: FlexJustifyContent.spaceAround), ], justifyContent: FlexJustifyContent.spaceAround),
new Row([0, 1, 2].map((int i) { new Row(<int>[0, 1, 2].map((int i) {
return new Radio<int>( return new Radio<int>(
value: i, value: i,
groupValue: _radioValue, groupValue: _radioValue,
onChanged: _setRadioValue onChanged: _setRadioValue
); );
}).toList(), justifyContent: FlexJustifyContent.spaceAround), }).toList(), justifyContent: FlexJustifyContent.spaceAround),
new Row([0, 1].map((int i) { new Row(<int>[0, 1].map((int i) {
return new Radio<int>(value: i, groupValue: 0); // Disabled return new Radio<int>(value: i, groupValue: 0); // Disabled
}).toList(), justifyContent: FlexJustifyContent.spaceAround), }).toList(), justifyContent: FlexJustifyContent.spaceAround),
new Row([ new Row(<Widget>[
new Switch(value: _switchValue, onChanged: _setSwitchValue), new Switch(value: _switchValue, onChanged: _setSwitchValue),
new Switch(value: false), // Disabled new Switch(value: false), // Disabled
], justifyContent: FlexJustifyContent.spaceAround), ], justifyContent: FlexJustifyContent.spaceAround),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment