InputFormField({Key key, GlobalKey focusKey, TextInputType keyboardType: TextInputType.text, Icon icon, String labelText, String hintText, TextStyle style, bool hideText: false, bool isDense: false, bool autofocus: false, int maxLines: 1, InputValue initialValue: InputValue.empty, FormFieldSetter<InputValue> onSaved, FormFieldValidator<InputValue> validator })
Source
InputFormField({
Key key,
GlobalKey focusKey,
TextInputType keyboardType: TextInputType.text,
Icon icon,
String labelText,
String hintText,
TextStyle style,
bool hideText: false,
bool isDense: false,
bool autofocus: false,
int maxLines: 1,
InputValue initialValue: InputValue.empty,
FormFieldSetter<InputValue> onSaved,
FormFieldValidator<InputValue> validator,
}) : super(
key: key,
initialValue: initialValue,
onSaved: onSaved,
validator: validator,
builder: (FormFieldState<InputValue> field) {
return new Input(
key: focusKey,
keyboardType: keyboardType,
icon: icon,
labelText: labelText,
hintText: hintText,
style: style,
hideText: hideText,
isDense: isDense,
autofocus: autofocus,
maxLines: maxLines,
value: field.value,
onChanged: field.onChanged,
errorText: field.errorText,
);
},
);