Closed
Description
Put this in a dialog, and as you type in the text field, the dialog changes height.
new Form(
autovalidate: true,
child: new ListBody(
children: <Widget>[
new TextFormField(
decoration: const InputDecoration(
labelText: 'User name',
),
validator: (String name) {
if (name.length < 2)
return 'User names must be alphabetic and at least three characters long.';
},
),
),
],
),
),
cc @HansMuller