CustomTextInput constructor
const
CustomTextInput({
- Key? key,
- required TextEditingController controller,
- String? labelText,
- String? hintText,
- String? helperText,
- String? errorText,
- IconData? prefixIcon,
- IconData? suffixIcon,
- VoidCallback? onSuffixIconPressed,
- TextInputType keyboardType = TextInputType.text,
- bool obscureText = false,
- bool enabled = true,
- List<
TextInputFormatter> ? inputFormatters, - int? maxLength,
- int? maxLines = 1,
- int? minLines,
- String? counterText,
- AutovalidateMode? autovalidateMode,
- String? validator()?,
- void onChanged()?,
- void onSubmitted()?,
- double borderRadius = 8.0,
- EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(horizontal: 16, vertical: 16),
- Color? fillColor,
- Color? borderColor,
- FocusNode? focusNode,
- bool autocorrect = false,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextInputAction? textInputAction,
- TextStyle? textStyle,
- String fontFamily = 'Roboto',
Implementation
const CustomTextInput({
Key? key,
required this.controller,
this.labelText,
this.hintText,
this.helperText,
this.errorText,
this.prefixIcon,
this.suffixIcon,
this.onSuffixIconPressed,
this.keyboardType = TextInputType.text,
this.obscureText = false,
this.enabled = true,
this.inputFormatters,
this.maxLength,
this.maxLines = 1,
this.minLines,
this.counterText,
this.autovalidateMode,
this.validator,
this.onChanged,
this.onSubmitted,
this.borderRadius = 8.0,
this.contentPadding =
const EdgeInsets.symmetric(horizontal: 16, vertical: 16),
this.fillColor,
this.borderColor,
this.focusNode,
this.autocorrect = false,
this.textCapitalization = TextCapitalization.none,
this.textInputAction,
this.textStyle,
this.fontFamily = 'Roboto',
}) : super(key: key);