CandyTextField constructor

const CandyTextField({
  1. Key? key,
  2. required TextEditingController controller,
  3. String? hintText,
  4. IconData? prefixIcon,
  5. FormFieldValidator<String>? validator,
  6. bool obscureText = false,
  7. TextInputType? keyboardType,
  8. ValueChanged<String>? onChanged,
  9. Color? color,
})

Implementation

const CandyTextField({
  super.key,
  required this.controller,
  this.hintText,
  this.prefixIcon,
  this.validator,
  this.obscureText = false,
  this.keyboardType,
  this.onChanged,
  this.color,
});