AppTextFormField constructor

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

Implementation

const AppTextFormField({
  this.alignLabelWithHint,
  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,
  this.onTap,
  super.key,
});