AtomicTextField constructor

const AtomicTextField({
  1. Key? key,
  2. required TextEditingController controller,
  3. String? label,
  4. String? hint,
  5. String? helperText,
  6. String? errorText,
  7. IconData? prefixIcon,
  8. Widget? suffixIcon,
  9. ValueChanged<String>? onChanged,
  10. ValueChanged<String>? onSubmitted,
  11. VoidCallback? onTap,
  12. String? validator(
    1. String?
    )?,
  13. TextInputType? keyboardType,
  14. TextInputAction? textInputAction,
  15. bool obscureText = false,
  16. bool enabled = true,
  17. bool readOnly = false,
  18. bool autofocus = false,
  19. int? maxLines = 1,
  20. int? minLines = 1,
  21. int? maxLength,
  22. List<TextInputFormatter>? inputFormatters,
  23. FocusNode? focusNode,
  24. Color? fillColor,
  25. AtomicTextFieldBorderType borderType = AtomicTextFieldBorderType.outlined,
})

Implementation

const AtomicTextField({
  super.key,
  required this.controller,
  this.label,
  this.hint,
  this.helperText,
  this.errorText,
  this.prefixIcon,
  this.suffixIcon,
  this.onChanged,
  this.onSubmitted,
  this.onTap,
  this.validator,
  this.keyboardType,
  this.textInputAction,
  this.obscureText = false,
  this.enabled = true,
  this.readOnly = false,
  this.autofocus = false,
  this.maxLines = 1,
  this.minLines = 1,
  this.maxLength,
  this.inputFormatters,
  this.focusNode,
  this.fillColor,
  this.borderType = AtomicTextFieldBorderType.outlined,
});