TTextField constructor

const TTextField({
  1. Key? key,
  2. String? label,
  3. String? tag,
  4. String? placeholder,
  5. String? helperText,
  6. String? message,
  7. String? value,
  8. bool isRequired = false,
  9. bool disabled = false,
  10. int? rows,
  11. TInputSize? size = TInputSize.md,
  12. Color? color,
  13. BoxDecoration? boxDecoration,
  14. Widget? preWidget,
  15. Widget? postWidget,
  16. List<TextInputFormatter>? inputFormatters,
  17. List<String? Function(String?)>? rules,
  18. TextEditingController? controller,
  19. FocusNode? focusNode,
  20. List<String>? errors,
  21. ValueChanged<String>? onValueChanged,
  22. Duration? validationDebounce,
  23. TextInputType? keyboardType,
  24. TextCapitalization textCapitalization = TextCapitalization.none,
  25. bool autocorrect = true,
  26. bool enableSuggestions = true,
  27. int? maxLength,
  28. MaxLengthEnforcement? maxLengthEnforcement,
  29. bool obscureText = false,
  30. TextInputAction? textInputAction,
  31. ValueNotifier<String>? valueNotifier,
  32. bool? skipValidation,
  33. VoidCallback? onTap,
  34. 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,
});