CustomTextField constructor
CustomTextField({
- Key? key,
- required TextEditingController textController,
- String hintText = "",
- String validatorName = "",
- TextInputAction textInputAction = TextInputAction.next,
- TextCapitalization textCapitalization = TextCapitalization.sentences,
- TextInputType keyboardType = TextInputType.text,
- bool isPasswordField = false,
- bool readMode = false,
- bool hasOnchange = false,
- dynamic onTap()?,
- dynamic onChanged()?,
- bool autoValidate = true,
- int? maxLength,
- int? maxLines,
- List<
TextInputFormatter> ? inputFormatters, - String? labelText,
- String? suffixIcon,
- FocusNode? focusNode,
- int? minLines,
- Color? enabledBorderColor,
- FormFieldValidator? customValidator,
- Widget? suffixWidget,
- Function? suffixOnTap,
Implementation
CustomTextField({
super.key,
required this.textController,
this.hintText = "",
this.validatorName = "",
this.textInputAction = TextInputAction.next,
this.textCapitalization = TextCapitalization.sentences,
this.keyboardType = TextInputType.text,
this.isPasswordField = false,
this.readMode = false,
this.hasOnchange = false,
this.onTap,
this.onChanged,
this.autoValidate = true,
this.maxLength,
this.maxLines,
this.inputFormatters,
this.labelText,
this.suffixIcon,
this.focusNode,
this.minLines,
this.enabledBorderColor,
this.customValidator,
this.suffixWidget,
this.suffixOnTap,
});