AppTextFormField constructor

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