CustomInput constructor

const CustomInput({
  1. Key? key,
  2. required TextEditingController controller,
  3. String? label,
  4. bool isObscure = false,
  5. bool enabled = true,
  6. String? hintText,
  7. Color? inputColor,
  8. Color? hintColor,
  9. double borderRadius = 20,
  10. VoidCallback? onTap,
  11. VoidCallback? onChanged,
  12. String? validator(
    1. String?
    )?,
  13. 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);