Commit c825237a authored by Matt Perry's avatar Matt Perry Committed by GitHub

Fix improper Input usage in Gallery's Expansion demo. (#6019)

Fixes https://github.com/flutter/flutter/issues/6011
parent 898b52f8
......@@ -191,17 +191,15 @@ class _ExpansionPanelsDemoState extends State<ExpasionPanelsDemo> {
return new CollapsibleBody(
margin: const EdgeInsets.symmetric(horizontal: 16.0),
child: new Input(
hintText: item.hint,
labelText: item.name,
value: new InputValue(
text: item.value
child: new Form(
child: new Input(
hintText: item.hint,
labelText: item.name,
value: new InputValue(text: item.value),
formField: new FormField<String>(
setter: (String val) { item.value = val; }
),
),
onSubmitted: (InputValue val) {
setState(() {
item.value = val.text;
});
}
),
onSave: close,
onCancel: close
......
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