CustomTextField constructor

const CustomTextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? label,
  4. String? hint,
  5. String? helperText,
  6. String? errorText,
  7. Widget? prefixIcon,
  8. Widget? suffixIcon,
  9. bool obscureText = false,
  10. bool enabled = true,
  11. int maxLines = 1,
  12. int? maxLength,
  13. TextInputType? keyboardType,
  14. TextInputAction? textInputAction,
  15. ValueChanged<String>? onChanged,
  16. ValueChanged<String>? onSubmitted,
  17. String? validator(
    1. String?
    )?,
  18. List<TextInputFormatter>? inputFormatters,
})

Implementation

const CustomTextField({
  super.key,
  this.controller,
  this.label,
  this.hint,
  this.helperText,
  this.errorText,
  this.prefixIcon,
  this.suffixIcon,
  this.obscureText = false,
  this.enabled = true,
  this.maxLines = 1,
  this.maxLength,
  this.keyboardType,
  this.textInputAction,
  this.onChanged,
  this.onSubmitted,
  this.validator,
  this.inputFormatters,
});