AtomicTextField constructor
const
AtomicTextField({
- Key? key,
- required TextEditingController controller,
- String? label,
- String? hint,
- String? helperText,
- String? errorText,
- IconData? prefixIcon,
- Widget? suffixIcon,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - VoidCallback? onTap,
- String? validator()?,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- bool obscureText = false,
- bool enabled = true,
- bool readOnly = false,
- bool autofocus = false,
- int? maxLines = 1,
- int? minLines = 1,
- int? maxLength,
- List<
TextInputFormatter> ? inputFormatters, - FocusNode? focusNode,
- Color? fillColor,
- 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,
});