TTextFieldTheme constructor

const TTextFieldTheme({
  1. required WidgetStateProperty<Color> color,
  2. required WidgetStateProperty<Color> backgroundColor,
  3. required WidgetStateProperty<Color> borderColor,
  4. required WidgetStateProperty<TextStyle> labelStyle,
  5. required WidgetStateProperty<TextStyle> helperTextStyle,
  6. required WidgetStateProperty<TextStyle> errorTextStyle,
  7. required WidgetStateProperty<TextStyle> tagStyle,
  8. required WidgetStateProperty<double> borderRadius,
  9. required WidgetStateProperty<double> borderWidth,
  10. required WidgetStateProperty<LabelBuilder> labelBuilder,
  11. required WidgetStateProperty<HelperTextBuilder> helperTextBuilder,
  12. required WidgetStateProperty<ErrorsBuilder> errorsBuilder,
  13. required WidgetStateProperty<TextStyle> hintStyle,
  14. required WidgetStateProperty<TextStyle> textStyle,
  15. required TInputSize size,
  16. required TInputDecorationType decorationType,
  17. required TLabelPosition labelPosition,
  18. Widget? preWidget,
  19. Widget? postWidget,
  20. double? height,
  21. EdgeInsets? padding,
  22. double? fontSize,
  23. List<TextInputFormatter>? inputFormatters,
  24. TextInputType? keyboardType,
  25. TextCapitalization textCapitalization = TextCapitalization.none,
  26. bool autocorrect = true,
  27. bool enableSuggestions = true,
  28. int? maxLength,
  29. MaxLengthEnforcement? maxLengthEnforcement,
  30. TextInputAction? textInputAction,
  31. bool obscureText = false,
})

Creates a text field theme.

Implementation

const TTextFieldTheme({
  required super.color,
  required super.backgroundColor,
  required super.borderColor,
  required super.labelStyle,
  required super.helperTextStyle,
  required super.errorTextStyle,
  required super.tagStyle,
  required super.borderRadius,
  required super.borderWidth,
  required super.labelBuilder,
  required super.helperTextBuilder,
  required super.errorsBuilder,
  required super.hintStyle,
  required this.textStyle,
  required super.size,
  required super.decorationType,
  required super.labelPosition,
  super.preWidget,
  super.postWidget,
  super.height,
  super.padding,
  super.fontSize,
  this.inputFormatters,
  this.keyboardType,
  this.textCapitalization = TextCapitalization.none,
  this.autocorrect = true,
  this.enableSuggestions = true,
  this.maxLength,
  this.maxLengthEnforcement,
  this.textInputAction,
  this.obscureText = false,
});