FormifyTextField constructor
const
FormifyTextField({
- Key? key,
- String? label,
- String? initialValue,
- FocusNode? focusNode,
- TextInputType? keyboardType,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextInputAction? textInputAction,
- bool obscureText = false,
- int? maxLines = 1,
- int? minLines,
- ValueChanged<
String> ? onChanged, - GestureTapCallback? onTap,
- ValueChanged<
String> ? onFieldSubmitted, - FormFieldSetter<
String> ? onSaved, - FormFieldValidator<
String> ? validator, - List<
TextInputFormatter> ? inputFormatters, - bool? enabled,
- bool readOnly = false,
- AutovalidateMode? autovalidateMode,
- String? hintText,
- Widget? suffixIcon,
- Widget? prefixIcon,
- TextEditingController? controller,
- bool required = false,
- InputDecoration? inputDecoration,
- GlobalKey<
FormFieldState> ? formKey,
Implementation
const FormifyTextField({
Key? key,
this.label,
this.initialValue,
this.focusNode,
this.keyboardType,
this.textCapitalization = TextCapitalization.none,
this.textInputAction,
this.obscureText = false,
this.maxLines = 1,
this.minLines,
this.onChanged,
this.onTap,
this.onFieldSubmitted,
this.onSaved,
this.validator,
this.inputFormatters,
this.enabled,
this.readOnly = false,
this.autovalidateMode,
this.hintText,
this.suffixIcon,
this.prefixIcon,
this.controller,
this.required = false,
this.inputDecoration,
this.formKey,
}) : super(key: key);