TTextField constructor
const
TTextField({
- Key? key,
- String? label,
- String? tag,
- String? placeholder,
- String? helperText,
- String? message,
- String? value,
- bool isRequired = false,
- bool disabled = false,
- int? rows,
- TInputSize? size = TInputSize.md,
- Color? color,
- BoxDecoration? boxDecoration,
- Widget? preWidget,
- Widget? postWidget,
- List<
TextInputFormatter> ? inputFormatters, - List<
String? Function(String?)> ? rules, - TextEditingController? controller,
- FocusNode? focusNode,
- List<
String> ? errors, - ValueChanged<
String> ? onValueChanged, - Duration? validationDebounce,
- TextInputType? keyboardType,
- TextCapitalization textCapitalization = TextCapitalization.none,
- bool autocorrect = true,
- bool enableSuggestions = true,
- int? maxLength,
- MaxLengthEnforcement? maxLengthEnforcement,
- bool obscureText = false,
- TextInputAction? textInputAction,
- ValueNotifier<
String> ? valueNotifier, - bool? skipValidation,
- VoidCallback? onTap,
- bool? readOnly,
Implementation
const TTextField({
super.key,
this.label,
this.tag,
this.placeholder,
this.helperText,
this.message,
this.value,
this.isRequired = false,
this.disabled = false,
this.rows,
this.size = TInputSize.md,
this.color,
this.boxDecoration,
this.preWidget,
this.postWidget,
this.inputFormatters,
this.rules,
this.controller,
this.focusNode,
this.errors,
this.onValueChanged,
this.validationDebounce,
this.keyboardType,
this.textCapitalization = TextCapitalization.none,
this.autocorrect = true,
this.enableSuggestions = true,
this.maxLength,
this.maxLengthEnforcement,
this.obscureText = false,
this.textInputAction,
this.valueNotifier,
this.skipValidation,
this.onTap,
this.readOnly,
});