CustomTextField constructor
const
CustomTextField({
- Key? key,
- TextEditingController? controller,
- int? maxlines,
- int? maxLength,
- String? label,
- String? labelAbove,
- bool? readOnly,
- TextInputType? textInputType,
- bool isObscureText = false,
- String? hintText,
- List<
TextInputFormatter> ? inputFormatters, - TextStyle? hintTextStyle,
- OutlineInputBorder? enabledBorder,
- Widget? suffixIcon,
- Widget? prefixIcon,
- String? validator()?,
- dynamic onChanged()?,
- Color? fillColor,
- VoidCallback? onTap,
- String? errorMessage,
Creates a CustomTextField.
controller manages the text input.
hintText is shown when the field is empty.
Implementation
const CustomTextField({
super.key,
this.controller,
this.maxlines,
this.maxLength,
this.label,
this.labelAbove,
this.readOnly,
this.textInputType,
this.isObscureText = false,
this.hintText,
this.inputFormatters,
this.hintTextStyle,
this.enabledBorder,
this.suffixIcon,
this.prefixIcon,
this.validator,
this.onChanged,
this.fillColor,
this.onTap,
this.errorMessage,
});