SILFormTextField constructor
const
SILFormTextField({
- Key? key,
- bool? enabled,
- TextEditingController? controller,
- FormFieldSetter<
String> ? onSaved, - Function? onTap,
- String? labelText,
- String? hintText,
- String? initialValue,
- FormFieldValidator<
String> ? validator, - ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onFieldSubmit, - FocusNode? focusNode,
- TextInputType? keyboardType,
- List<
TextInputFormatter> ? formatters, - int? maxLines,
- int? maxLength,
- TextStyle? textStyle,
- Widget? suffixIcon,
- bool? isSearchField,
- bool? obscureText,
- bool? autoValidate = false,
- bool? isSearchFieldSmall,
- bool? autoFocus,
- List<
TextInputFormatter> ? inputFormatters, - Widget? prefixIcon,
- TextInputAction? textInputAction,
- Color? customFillColor,
- Color? hintColor,
- Color? hintTextColor,
- Color? borderColor,
- Color? textFieldBackgroundColor,
- InputDecoration? decoration,
- Key? fieldKey,
When a controller is specified, initialValue must be null (the default).
Implementation
const SILFormTextField({
Key? key,
this.enabled,
this.controller,
this.onSaved,
this.onTap,
this.labelText,
this.hintText,
this.initialValue,
this.validator,
this.onChanged,
this.onFieldSubmit,
this.focusNode,
this.keyboardType,
this.formatters,
this.maxLines,
this.maxLength,
this.textStyle,
this.suffixIcon,
this.isSearchField,
this.obscureText,
this.autoValidate = false,
this.isSearchFieldSmall,
this.autoFocus,
this.inputFormatters,
this.prefixIcon,
this.textInputAction,
this.customFillColor,
this.hintColor,
this.hintTextColor,
this.borderColor,
this.textFieldBackgroundColor,
this.decoration,
this.fieldKey,
}) : assert(initialValue == null || controller == null,
'When a controller is specified, initialValue must be null'),
super(key: key);