ProTextFormField constructor
const
ProTextFormField({
- Key? key,
- int? index,
- double? width,
- TextEditingController? controller,
- Color? fontColor,
- double? fontSize,
- FontWeight? fontWeight,
- String? label,
- Color? labelFontColor,
- double? labelFontSize,
- FontWeight? labelFontWeight,
- Color? borderColor,
- Color? borderColorFocused,
- Color? borderColorError,
- double? borderWidth,
- double? borderRadius,
- double? paddingHorizontal,
- double? paddingVertical,
- bool? filled = true,
- Color? backgroundColor,
- bool? enableShadow,
- String? hint,
- Color? hintColor,
- double? hintFontSize,
- FontWeight? hintFontWeight,
- Color? errorFontColor,
- void onSaved()?,
- double? errorFontSize,
- FontWeight? errorFontWeight,
- FormFieldValidator? validator,
- ValueChanged<
String> ? onChanged, - ValueChanged<
int?> ? getIndex, - Widget? prefix,
- Size? prefixSize,
- Widget? suffix,
- Size? suffixSize,
- String? initialValue,
- TextInputType keyboardType = TextInputType.text,
- bool enabled = true,
- int maxLines = 1,
- FocusNode? focusNode,
- VoidCallback? onTap,
- AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
- TextInputAction? textInputAction,
- bool? readOnly,
- List<
TextInputFormatter> ? textInputFormatters, - TextInputType? textInputType,
- bool? obsecureText,
ProTextFormField wrapped the TextFormField widget and now its more easier to use.
Implementation
const ProTextFormField({
Key? key,
this.index,
this.width,
this.controller,
this.fontColor,
this.fontSize,
this.fontWeight,
this.label,
this.labelFontColor,
this.labelFontSize,
this.labelFontWeight,
this.borderColor,
this.borderColorFocused,
this.borderColorError,
this.borderWidth,
this.borderRadius,
this.paddingHorizontal,
this.paddingVertical,
this.filled = true,
this.backgroundColor,
this.enableShadow,
this.hint,
this.hintColor,
this.hintFontSize,
this.hintFontWeight,
this.errorFontColor,
this.onSaved,
this.errorFontSize,
this.errorFontWeight,
this.validator,
this.onChanged,
this.getIndex,
this.prefix,
this.prefixSize,
this.suffix,
this.suffixSize,
this.initialValue,
this.keyboardType = TextInputType.text,
this.enabled = true,
this.maxLines = 1,
this.focusNode,
this.onTap,
this.autovalidateMode = AutovalidateMode.onUserInteraction,
this.textInputAction,
this.readOnly,
this.textInputFormatters,
this.textInputType,
this.obsecureText,
}) : super(key: key);