TFilePickerTheme constructor
const
TFilePickerTheme({
- TInputSize size = TInputSize.md,
- WidgetStateProperty<
Color?> ? color, - WidgetStateProperty<
Color?> ? backgroundColor, - WidgetStateProperty<
Color?> ? borderColor, - Widget? preWidget,
- Widget? postWidget,
- double? height,
- EdgeInsets? padding,
- double? fontSize,
- double? borderRadius,
- WidgetStateProperty<
TextStyle?> ? labelStyle, - WidgetStateProperty<
TextStyle?> ? helperTextStyle, - WidgetStateProperty<
TextStyle?> ? errorTextStyle, - WidgetStateProperty<
TextStyle?> ? tagStyle, - LabelBuilder? labelBuilder,
- HelperTextBuilder? helperTextBuilder,
- ErrorsBuilder? errorsBuilder,
- BorderBuilder? borderBuilder,
- BoxShadowBuilder? boxShadowBuilder,
- DecorationBuilder? decorationBuilder,
- double tagSpacing = 6.0,
- double tagRunSpacing = 6.0,
- EdgeInsets tagPadding = const EdgeInsets.symmetric(horizontal: 8.0, vertical: 2.0),
- double tagBorderRadius = 5.0,
- Color? tagBackgroundColor,
- Color? tagTextColor,
- double? tagFontSize,
- FontWeight? tagFontWeight,
- Color? tagIconColor,
- double tagIconSize = 14.0,
- double minInputWidth = 150.0,
- double maxInputWidth = double.infinity,
- Widget tagBuilder(
- TFile file,
- 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,
});