mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Fix improper Input usage in Gallery's Expansion demo. (#6019)
Fixes https://github.com/flutter/flutter/issues/6011
This commit is contained in:
parent
898b52f821
commit
c825237a38
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user