AppTextFormField constructor
const
AppTextFormField({
- List<
String> ? autofillHints, - AutovalidateMode autoValidateMode = AutovalidateMode.disabled,
- InputBorder? border,
- BoxConstraints? constraints,
- EdgeInsets? contentPadding,
- TextEditingController? controller,
- Duration debounceTime = Duration.zero,
- InputBorder? disabledBorder,
- bool enabled = true,
- InputBorder? enabledBorder,
- InputBorder? errorBorder,
- AppTextFormFieldErrorType errorType = AppTextFormFieldErrorType.string,
- Color? fillColor,
- bool? filled,
- InputBorder? focusedBorder,
- FocusNode? focusNode,
- String? helperText,
- String? hintText,
- TextStyle? hintStyle,
- Color? hoverColor,
- String? initialValue,
- List<
TextInputFormatter> ? inputFormatters, - InputDecorationTheme? inputTheme,
- bool? isCollapsed,
- TextInputType? keyboardType,
- AppTextFormFieldLabelBehavior labelBehavior = AppTextFormFieldLabelBehavior.flutterAuto,
- String? labelText,
- TextStyle? labelStyle,
- Widget? label,
- bool loseFocusOnOutsideTap = true,
- int? maxLength,
- int? maxLines = 1,
- int? minLines,
- bool obscureText = false,
- FutureOr<
void> onChanged(- String value
- ValueChanged<
String> ? onFieldSubmitted, - ValueChanged<
bool> ? onFocusChanged, - Widget? prefix,
- Widget? prefixIcon,
- String? prefixText,
- bool readOnly = false,
- bool requestFocusOnInitState = false,
- ScrollPhysics? scrollPhysics,
- bool selectAllOnFocus = false,
- bool showLoader = false,
- TextStyle? style,
- Widget? suffix,
- Widget? suffixIcon,
- String? suffixText,
- TextStyle? suffixStyle,
- TextAlign textAlign = TextAlign.start,
- TextInputAction? textInputAction,
- FormFieldValidator<
String> ? validator, - Key? key,
Implementation
const AppTextFormField({
this.autofillHints,
this.autoValidateMode = AutovalidateMode.disabled,
this.border,
this.constraints,
this.contentPadding,
this.controller,
this.debounceTime = Duration.zero,
this.disabledBorder,
this.enabled = true,
this.enabledBorder,
this.errorBorder,
this.errorType = AppTextFormFieldErrorType.string,
this.fillColor,
this.filled,
this.focusedBorder,
this.focusNode,
this.helperText,
this.hintText,
this.hintStyle,
this.hoverColor,
this.initialValue,
this.inputFormatters,
this.inputTheme,
this.isCollapsed,
this.keyboardType,
this.labelBehavior = AppTextFormFieldLabelBehavior.flutterAuto,
this.labelText,
this.labelStyle,
this.label,
this.loseFocusOnOutsideTap = true,
this.maxLength,
this.maxLines = 1,
this.minLines,
this.obscureText = false,
this.onChanged,
this.onFieldSubmitted,
this.onFocusChanged,
this.prefix,
this.prefixIcon,
this.prefixText,
this.readOnly = false,
this.requestFocusOnInitState = false,
this.scrollPhysics,
this.selectAllOnFocus = false,
this.showLoader = false,
this.style,
this.suffix,
this.suffixIcon,
this.suffixText,
this.suffixStyle,
this.textAlign = TextAlign.start,
this.textInputAction,
this.validator,
super.key,
});