TextFormFieldCustom constructor

const TextFormFieldCustom({
  1. Key? key,
  2. bool isPassword = false,
  3. bool isEnabled = true,
  4. bool isDone = false,
  5. bool centerText = false,
  6. bool disableOutlineBorder = true,
  7. bool autoFocus = false,
  8. bool readOnly = false,
  9. Color backgroundColor = Colors.white,
  10. EdgeInsetsGeometry padding = const EdgeInsets.only(bottom: 16.0, left: 16.0, right: 16.0, top: 16.0),
  11. int errorMaxLines = 2,
  12. double radius = 8,
  13. TextInputType keyboardType = TextInputType.text,
  14. TextInputAction textInputAction = TextInputAction.done,
  15. List<Widget> suffixIcon = const [],
  16. SuffixIconConfiguration suffixIconConfiguration = const SuffixIconConfiguration(),
  17. TextCapitalization textCapitalization = TextCapitalization.none,
  18. Color? activeColor,
  19. Widget? prefixIcon,
  20. InputBorderStyle? focusedErrorBorderStyle,
  21. InputBorderStyle? focusedBorderStyle,
  22. InputBorderStyle? disabledBorderStyle,
  23. InputBorderStyle? enabledBorderStyle,
  24. InputBorderStyle? defaultBorderStyle,
  25. InputBorderStyle? errorBorderStyle,
  26. IconData onObsecurePasswordIcon(
    1. bool isObsecure
    )?,
  27. Color onObsecurePasswordColor(
    1. bool isObsecure
    )?,
  28. String? hintText,
  29. String? labelText,
  30. String? initialValue,
  31. String? errorMessage,
  32. int? minLines,
  33. int? maxLines,
  34. TextStyle? errorStyle,
  35. TextStyle? textStyle,
  36. TextStyle? prefixTextStyle,
  37. TextStyle? suffixTextStyle,
  38. TextStyle? labelStyle,
  39. FocusNode? focusNode,
  40. List<TextInputFormatter>? inputFormatter,
  41. TextEditingController? controller,
  42. TextStyle? hintStyle,
  43. FormFieldValidator<String>? validator,
  44. ValueChanged<String>? onFieldSubmitted,
  45. ValueChanged<String>? onChanged,
  46. FormFieldSetter<String>? onSaved,
  47. VoidCallback? onTap,
})

Implementation

const TextFormFieldCustom({
  Key? key,
  this.isPassword = false,
  this.isEnabled = true,
  this.isDone = false,
  this.centerText = false,
  this.disableOutlineBorder = true,
  this.autoFocus = false,
  this.readOnly = false,
  this.backgroundColor = Colors.white,
  this.padding =
      const EdgeInsets.only(bottom: 16.0, left: 16.0, right: 16.0, top: 16.0),
  this.errorMaxLines = 2,
  this.radius = 8,
  this.keyboardType = TextInputType.text,
  this.textInputAction = TextInputAction.done,
  this.suffixIcon = const [],
  this.suffixIconConfiguration = const SuffixIconConfiguration(),
  this.textCapitalization = TextCapitalization.none,
  this.activeColor,
  this.prefixIcon,
  this.focusedErrorBorderStyle,
  this.focusedBorderStyle,
  this.disabledBorderStyle,
  this.enabledBorderStyle,
  this.defaultBorderStyle,
  this.errorBorderStyle,
  this.onObsecurePasswordIcon,
  this.onObsecurePasswordColor,
  this.hintText,
  this.labelText,
  this.initialValue,
  this.errorMessage,
  this.minLines,
  this.maxLines,
  this.errorStyle,
  this.textStyle,
  this.prefixTextStyle,
  this.suffixTextStyle,
  this.labelStyle,
  this.focusNode,
  this.inputFormatter,
  this.controller,
  this.hintStyle,
  this.validator,
  this.onFieldSubmitted,
  this.onChanged,
  this.onSaved,
  this.onTap,
}) : super(key: key);