CustomTextField constructor
const
CustomTextField({
- Key? key,
- required TextEditingController controller,
- double? height,
- TextInputType? keyboardType,
- Color? mandatoryTitleColor,
- Color? cursorColor,
- EdgeInsetsGeometry? contentPadding,
- bool enabled = true,
- int? maxLines,
- AutovalidateMode autovalidateMode = AutovalidateMode.onUnfocus,
- TextInputAction? textInputAction = TextInputAction.done,
- TextCapitalization? textCapitalization,
- String? labelText,
- TextStyle? labelStyle,
- Color? color,
- String? validator()?,
- dynamic onChanged()?,
- Widget? prefix,
- Widget? suffix,
- Widget? suffixIcon,
- Widget? prefixIcon,
- bool obscureText = false,
- int? maxlength,
- TextAlign? textAlign,
- TextStyle? textStyle,
- InputBorder? border,
- InputBorder? enabledBorder,
- InputBorder? focusedBorder,
- InputBorder? errorBorder,
- InputBorder? disabledBorder,
- List<
TextInputFormatter> ? inputFormatters, - VoidCallback? onTapOutside,
- String? mandatoryTitle,
- TextType? mandatoryTextType,
- bool? isDense,
- bool autofocus = false,
- 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,
});