CustomTextFieldWidget constructor
const
CustomTextFieldWidget({
- Key? key,
- String? labelText,
- String? hintText,
- TextEditingController? controller,
- Widget? prefixIcon,
- Widget? suffixIcon,
- TextInputType keyboardType = TextInputType.text,
- FormFieldValidator<
String?> ? validator = Validators.validateEmpty, - ValueChanged<
String?> ? onChanged, - ValueChanged<
String?> ? onSaved, - int maxLines = 1,
- int minLines = 1,
- List<
TextInputFormatter> ? inputFormatters, - String? initialValue,
- bool readOnly = false,
- bool obscureText = false,
- dynamic onTap()?,
- Widget? suffix,
- bool enabled = true,
- AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
- bool addHint = false,
- BoxConstraints? suffixIconConstraints,
- String? prefixText,
- String? suffixText,
- bool? isDense,
- EdgeInsets? prefixIconPadding,
- Color? fillColor,
- TextInputAction? textInputAction,
- TextCapitalization capitalization = TextCapitalization.none,
Implementation
const CustomTextFieldWidget({
Key? key,
this.labelText,
this.hintText,
this.controller,
this.prefixIcon,
this.suffixIcon,
this.keyboardType = TextInputType.text,
this.validator = Validators.validateEmpty,
this.onChanged,
this.onSaved,
this.maxLines=1,
this.minLines = 1,
this.inputFormatters,
this.initialValue,
this.readOnly = false,
this.obscureText = false,
this.onTap,
this.suffix,
this.enabled = true,
this.autovalidateMode = AutovalidateMode.onUserInteraction,
this.addHint = false,
this.suffixIconConstraints,
this.prefixText,
this.suffixText,
this.isDense,
this.prefixIconPadding,
this.fillColor,
this.textInputAction,
this.capitalization = TextCapitalization.none
}) : super(key: key);