AuiTextField constructor

const AuiTextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? label,
  4. String? hint,
  5. String? error,
  6. String? helper,
  7. IconData? prefixIcon,
  8. IconData? suffixIcon,
  9. VoidCallback? onSuffixTap,
  10. int? maxLength,
  11. bool obscureText = false,
  12. bool enabled = true,
  13. ValueChanged<String>? onChanged,
  14. ValueChanged<String>? onSubmitted,
  15. TextInputType? keyboardType,
  16. int maxLines = 1,
  17. 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;