TatweerTextField constructor
const
TatweerTextField({
- Key? key,
- TextEditingController? controller,
- String? initialValue,
- String? hintText,
- String? label,
- String? helperText,
- String? errorText,
- bool enabled = true,
- bool readOnly = false,
- bool obscureText = false,
- TextInputType? keyboardType,
- int? maxLines = 1,
- int? minLines,
- int? maxLength,
- IconData? prefixIcon,
- IconData? suffixIcon,
- VoidCallback? onSuffixIconTap,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - String? validator()?,
- List<
TextInputFormatter> ? inputFormatters, - double? borderRadius,
- Color? borderColor,
- FocusNode? focusNode,
- TextCapitalization textCapitalization = TextCapitalization.none,
- bool autofocus = false,
Implementation
const TatweerTextField({
Key? key,
this.controller,
this.initialValue,
this.hintText,
this.label,
this.helperText,
this.errorText,
this.enabled = true,
this.readOnly = false,
this.obscureText = false,
this.keyboardType,
this.maxLines = 1,
this.minLines,
this.maxLength,
this.prefixIcon,
this.suffixIcon,
this.onSuffixIconTap,
this.onChanged,
this.onSubmitted,
this.validator,
this.inputFormatters,
this.borderRadius,
this.borderColor,
this.focusNode,
this.textCapitalization = TextCapitalization.none,
this.autofocus = false,
}) : super(key: key);