CustomTextField constructor

const CustomTextField({
  1. Key? key,
  2. required TextEditingController controller,
  3. double? height,
  4. TextInputType? keyboardType,
  5. Color? mandatoryTitleColor,
  6. Color? cursorColor,
  7. EdgeInsetsGeometry? contentPadding,
  8. bool enabled = true,
  9. int? maxLines,
  10. AutovalidateMode autovalidateMode = AutovalidateMode.onUnfocus,
  11. TextInputAction? textInputAction = TextInputAction.done,
  12. TextCapitalization? textCapitalization,
  13. String? labelText,
  14. TextStyle? labelStyle,
  15. Color? color,
  16. String? validator(
    1. String?
    )?,
  17. dynamic onChanged(
    1. String
    )?,
  18. Widget? prefix,
  19. Widget? suffix,
  20. Widget? suffixIcon,
  21. Widget? prefixIcon,
  22. bool obscureText = false,
  23. int? maxlength,
  24. TextAlign? textAlign,
  25. TextStyle? textStyle,
  26. InputBorder? border,
  27. InputBorder? enabledBorder,
  28. InputBorder? focusedBorder,
  29. InputBorder? errorBorder,
  30. InputBorder? disabledBorder,
  31. List<TextInputFormatter>? inputFormatters,
  32. VoidCallback? onTapOutside,
  33. String? mandatoryTitle,
  34. TextType? mandatoryTextType,
  35. bool? isDense,
  36. bool autofocus = false,
  37. FocusNode? focusNode,
})

Implementation

const CustomTextField({
  super.key,
  required this.controller,
  this.height,
  this.keyboardType,
  this.mandatoryTitleColor,
  this.cursorColor,
  this.contentPadding,
  this.enabled = true,
  this.maxLines,
  this.autovalidateMode = AutovalidateMode.onUnfocus,
  this.textInputAction = TextInputAction.done,
  this.textCapitalization,
  this.labelText,
  this.labelStyle,
  this.color,
  this.validator,
  this.onChanged,
  this.prefix,
  this.suffix,
  this.suffixIcon,
  this.prefixIcon,
  this.obscureText = false,
  this.maxlength,
  this.textAlign,
  this.textStyle,
  this.border,
  this.enabledBorder,
  this.focusedBorder,
  this.errorBorder,
  this.disabledBorder,
  this.inputFormatters,
  this.onTapOutside,
  this.mandatoryTitle,
  this.mandatoryTextType,
  this.isDense,
  this.autofocus = false,
  this.focusNode,
});