CustomTextField constructor

const CustomTextField({
  1. Key? key,
  2. required String hintText,
  3. String? svgIconPath,
  4. TextInputType keyboardType = TextInputType.text,
  5. bool obscureText = false,
  6. double borderRadius = 10,
  7. TextEditingController? controller,
  8. String? errorText,
  9. dynamic onChanged(
    1. String
    )?,
  10. List<TextInputFormatter>? inputFormatters,
  11. TextCapitalization textCapitalization = TextCapitalization.none,
})

Implementation

const CustomTextField({
  super.key,
  required this.hintText,
  this.svgIconPath,
  this.keyboardType = TextInputType.text,
  this.obscureText = false,
  this.borderRadius = 10,
  this.controller,
  this.errorText,
  this.onChanged,
  this.inputFormatters,
  this.textCapitalization = TextCapitalization.none,
});