TFilePickerTheme constructor

const TFilePickerTheme({
  1. TInputSize size = TInputSize.md,
  2. WidgetStateProperty<Color?>? color,
  3. WidgetStateProperty<Color?>? backgroundColor,
  4. WidgetStateProperty<Color?>? borderColor,
  5. Widget? preWidget,
  6. Widget? postWidget,
  7. double? height,
  8. EdgeInsets? padding,
  9. double? fontSize,
  10. double? borderRadius,
  11. WidgetStateProperty<TextStyle?>? labelStyle,
  12. WidgetStateProperty<TextStyle?>? helperTextStyle,
  13. WidgetStateProperty<TextStyle?>? errorTextStyle,
  14. WidgetStateProperty<TextStyle?>? tagStyle,
  15. LabelBuilder? labelBuilder,
  16. HelperTextBuilder? helperTextBuilder,
  17. ErrorsBuilder? errorsBuilder,
  18. BorderBuilder? borderBuilder,
  19. BoxShadowBuilder? boxShadowBuilder,
  20. DecorationBuilder? decorationBuilder,
  21. double tagSpacing = 6.0,
  22. double tagRunSpacing = 6.0,
  23. EdgeInsets tagPadding = const EdgeInsets.symmetric(horizontal: 8.0, vertical: 2.0),
  24. double tagBorderRadius = 5.0,
  25. Color? tagBackgroundColor,
  26. Color? tagTextColor,
  27. double? tagFontSize,
  28. FontWeight? tagFontWeight,
  29. Color? tagIconColor,
  30. double tagIconSize = 14.0,
  31. double minInputWidth = 150.0,
  32. double maxInputWidth = double.infinity,
  33. Widget tagBuilder(
    1. TFile file,
    2. VoidCallback onRemove
    )?,
})

Implementation

const TFilePickerTheme({
  super.size = TInputSize.md,
  super.color,
  super.backgroundColor,
  super.borderColor,
  super.preWidget,
  super.postWidget,
  super.height,
  super.padding,
  super.fontSize,
  super.borderRadius,
  super.labelStyle,
  super.helperTextStyle,
  super.errorTextStyle,
  super.tagStyle,
  super.labelBuilder,
  super.helperTextBuilder,
  super.errorsBuilder,
  super.borderBuilder,
  super.boxShadowBuilder,
  super.decorationBuilder,

  // Tag-specific properties
  this.tagSpacing = 6.0,
  this.tagRunSpacing = 6.0,
  this.tagPadding = const EdgeInsets.symmetric(horizontal: 8.0, vertical: 2.0),
  this.tagBorderRadius = 5.0,
  this.tagBackgroundColor,
  this.tagTextColor,
  this.tagFontSize,
  this.tagFontWeight,
  this.tagIconColor,
  this.tagIconSize = 14.0,
  this.minInputWidth = 150.0,
  this.maxInputWidth = double.infinity,
  this.tagBuilder,
});