ProTextFormField constructor

const ProTextFormField({
  1. Key? key,
  2. int? index,
  3. double? width,
  4. TextEditingController? controller,
  5. Color? fontColor,
  6. double? fontSize,
  7. FontWeight? fontWeight,
  8. String? label,
  9. Color? labelFontColor,
  10. double? labelFontSize,
  11. FontWeight? labelFontWeight,
  12. Color? borderColor,
  13. Color? borderColorFocused,
  14. Color? borderColorError,
  15. double? borderWidth,
  16. double? borderRadius,
  17. double? paddingHorizontal,
  18. double? paddingVertical,
  19. bool? filled = true,
  20. Color? backgroundColor,
  21. bool? enableShadow,
  22. String? hint,
  23. Color? hintColor,
  24. double? hintFontSize,
  25. FontWeight? hintFontWeight,
  26. Color? errorFontColor,
  27. void onSaved(
    1. String?
    )?,
  28. double? errorFontSize,
  29. FontWeight? errorFontWeight,
  30. FormFieldValidator? validator,
  31. ValueChanged<String>? onChanged,
  32. ValueChanged<int?>? getIndex,
  33. Widget? prefix,
  34. Size? prefixSize,
  35. Widget? suffix,
  36. Size? suffixSize,
  37. String? initialValue,
  38. TextInputType keyboardType = TextInputType.text,
  39. bool enabled = true,
  40. int maxLines = 1,
  41. FocusNode? focusNode,
  42. VoidCallback? onTap,
  43. AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
  44. TextInputAction? textInputAction,
  45. bool? readOnly,
  46. List<TextInputFormatter>? textInputFormatters,
  47. TextInputType? textInputType,
  48. 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);