AppTextFormField constructor

const AppTextFormField({
  1. List<String>? autofillHints,
  2. AutovalidateMode autoValidateMode = AutovalidateMode.disabled,
  3. InputBorder? border,
  4. EdgeInsets? contentPadding,
  5. TextEditingController? controller,
  6. Duration debounceTime = Duration.zero,
  7. InputBorder? disabledBorder,
  8. bool enabled = true,
  9. InputBorder? enabledBorder,
  10. AppTextFormFieldErrorType errorType = AppTextFormFieldErrorType.string,
  11. Color? fillColor,
  12. bool? filled,
  13. InputBorder? focusedBorder,
  14. FocusNode? focusNode,
  15. String? helperText,
  16. String? hintText,
  17. TextStyle? hintStyle,
  18. String? initialValue,
  19. List<TextInputFormatter>? inputFormatters,
  20. InputDecorationTheme? inputTheme,
  21. TextInputType? keyboardType,
  22. AppTextFormFieldLabelBehavior labelBehavior = AppTextFormFieldLabelBehavior.flutterAuto,
  23. String? labelText,
  24. TextStyle? labelStyle,
  25. Widget? label,
  26. bool loseFocusOnOutsideTap = true,
  27. int? maxLength,
  28. int? maxLines = 1,
  29. int? minLines,
  30. bool obscureText = false,
  31. FutureOr<void> onChanged(
    1. String value
    )?,
  32. ValueChanged<String>? onFieldSubmitted,
  33. ValueChanged<bool>? onFocusChanged,
  34. Widget? prefixIcon,
  35. String? prefixText,
  36. bool readOnly = false,
  37. bool requestFocusOnInitState = false,
  38. bool showLoader = false,
  39. TextStyle? style,
  40. Widget? suffix,
  41. Widget? suffixIcon,
  42. String? suffixText,
  43. TextStyle? suffixStyle,
  44. TextAlign textAlign = TextAlign.start,
  45. TextInputAction? textInputAction,
  46. FormFieldValidator<String>? validator,
  47. Key? key,
})

Implementation

const AppTextFormField({
  this.autofillHints,
  this.autoValidateMode = AutovalidateMode.disabled,
  this.border,
  this.contentPadding,
  this.controller,
  this.debounceTime = Duration.zero,
  this.disabledBorder,
  this.enabled = true,
  this.enabledBorder,
  this.errorType = AppTextFormFieldErrorType.string,
  this.fillColor,
  this.filled,
  this.focusedBorder,
  this.focusNode,
  this.helperText,
  this.hintText,
  this.hintStyle,
  this.initialValue,
  this.inputFormatters,
  this.inputTheme,
  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.prefixIcon,
  this.prefixText,
  this.readOnly = false,
  this.requestFocusOnInitState = false,
  this.showLoader = false,
  this.style,
  this.suffix,
  this.suffixIcon,
  this.suffixText,
  this.suffixStyle,
  this.textAlign = TextAlign.start,
  this.textInputAction,
  this.validator,
  super.key,
});