CustomInputField constructor
const
CustomInputField({
- Key? key,
- TextEditingController? controller,
- bool obscureText = false,
- double borderRadius = 12.0,
- double? height,
- int maxLines = 1,
- bool readOnly = false,
- FocusNode? focusNode,
- String? hintText,
- String? labelText,
- String? errorText,
- String? initialValue,
- String? helperText,
- Color? borderColor = Colors.grey,
- Color? errorBorderColor = Colors.red,
- Color? fillColor,
- bool? filled,
- Widget? prefixWidget,
- Widget? suffixWidget,
- VoidCallback? suffixTap,
- TextInputType keyBoardType = TextInputType.text,
- dynamic onChanged()?,
- FormFieldValidator<
String> ? validator,
Implementation
const CustomInputField({
super.key,
this.controller,
this.obscureText = false,
this.borderRadius = 12.0,
this.height,
this.maxLines = 1,
this.readOnly = false,
this.focusNode,
this.hintText,
this.labelText,
this.errorText,
this.initialValue,
this.helperText,
this.borderColor = Colors.grey,
this.errorBorderColor = Colors.red ,
this.fillColor,
this.filled,
this.prefixWidget,
this.suffixWidget,
this.suffixTap,
this.keyBoardType = TextInputType.text,
this.onChanged,
this.validator,
});