AuiTextField constructor
const
AuiTextField({
- Key? key,
- TextEditingController? controller,
- String? label,
- String? hint,
- String? error,
- String? helper,
- IconData? prefixIcon,
- IconData? suffixIcon,
- VoidCallback? onSuffixTap,
- int? maxLength,
- bool obscureText = false,
- bool enabled = true,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - TextInputType? keyboardType,
- int maxLines = 1,
- bool autofocus = false,
Creates an outlined AuiTextField (default variant).
Implementation
const AuiTextField({
super.key,
this.controller,
this.label,
this.hint,
this.error,
this.helper,
this.prefixIcon,
this.suffixIcon,
this.onSuffixTap,
this.maxLength,
this.obscureText = false,
this.enabled = true,
this.onChanged,
this.onSubmitted,
this.keyboardType,
this.maxLines = 1,
this.autofocus = false,
}) : _variant = _AuiTextFieldVariant.outlined;