CustomTextField constructor
const
CustomTextField({
- Key? key,
- FocusNode? focusNode,
- TextStyle? labelStyle,
- OutlineInputBorder? inputBorder,
- TextEditingController? controller,
- int? maxLength,
- String? labelText,
- String? hintText,
- bool isNewStyle = false,
- bool isPassword = false,
- String? validator()?,
- TextInputType? keyboardType,
- bool readOnly = false,
- VoidCallback? onTap,
- int? maxLines,
- EdgeInsets? contentPadding,
- Widget? suffixIcon,
- bool isFilled = false,
- Widget? prefixIcon,
- dynamic onSubmitted()?,
- dynamic onChanged()?,
- String? initialValue,
- BoxConstraints? prefixIconConstraints,
- bool? autoFocus = false,
- TextInputAction? textInputAction,
- TextAlign? textAlign,
- String? prefixText,
- double? borderRadius,
- TextStyle? hintStyle,
- AutovalidateMode? autoValidateMode,
- Color? titleColor,
- List<
TextInputFormatter> ? inputFormatters, - TextStyle? textStyle,
- double minPrefixWidth = 70,
- Color? focusedBorderColor,
- OutlineInputBorder? errorBorder,
- TextStyle? errorStyle,
- int? errorMaxlines,
Implementation
const CustomTextField({
super.key,
this.focusNode,
this.labelStyle,
this.inputBorder,
this.controller,
this.maxLength,
this.labelText,
this.hintText,
this.isNewStyle = false,
this.isPassword = false,
this.validator,
this.keyboardType,
this.readOnly = false,
this.onTap,
this.maxLines,
this.contentPadding,
this.suffixIcon,
this.isFilled = false,
this.prefixIcon,
this.onSubmitted,
this.onChanged,
this.initialValue,
this.prefixIconConstraints,
this.autoFocus = false,
this.textInputAction,
this.textAlign,
this.prefixText,
this.borderRadius,
this.hintStyle,
this.autoValidateMode,
this.titleColor,
this.inputFormatters,
this.textStyle,
this.minPrefixWidth = 70,
this.focusedBorderColor,
this.errorBorder,
this.errorStyle,
this.errorMaxlines,
});