CustomInput constructor
const
CustomInput({
- Key? key,
- required TextEditingController controller,
- String? label,
- bool isObscure = false,
- bool enabled = true,
- String? hintText,
- Color? inputColor,
- Color? hintColor,
- double borderRadius = 20,
- VoidCallback? onTap,
- VoidCallback? onChanged,
- String? validator()?,
- bool autofocus = false,
Creates a CustomInput widget.
The controller
parameter is required. The other parameters are optional
and provide various customization options.
Implementation
const CustomInput({
Key? key,
required this.controller,
this.label,
this.isObscure = false,
this.enabled = true,
this.hintText,
this.inputColor,
this.hintColor,
this.borderRadius = 20,
this.onTap,
this.onChanged,
this.validator,
this.autofocus = false,
}) : super(key: key);