TabThemeData constructor
TabThemeData({
- IconProvider? closeIcon,
- Color normalButtonColor = Colors.black,
- Color hoverButtonColor = Colors.black,
- Color disabledButtonColor = Colors.black12,
- BoxDecoration? normalButtonBackground,
- BoxDecoration? hoverButtonBackground,
- BoxDecoration? disabledButtonBackground,
- double buttonIconSize = TabbedViewThemeConstants.defaultIconSize,
- VerticalAlignment verticalAlignment = VerticalAlignment.center,
- double buttonsOffset = 0,
- EdgeInsetsGeometry? buttonPadding,
- double buttonsGap = 0,
- BoxDecoration? decoration,
- BoxDecoration? draggingDecoration,
- double draggingOpacity = 0.3,
- BorderSide? innerBottomBorder,
- BorderSide? innerTopBorder,
- TextStyle? textStyle = const TextStyle(fontSize: 13),
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? paddingWithoutButton,
- EdgeInsetsGeometry? margin,
- TabStatusThemeData? selectedStatus,
- TabStatusThemeData? highlightedStatus,
- TabStatusThemeData? disabledStatus,
Implementation
TabThemeData(
{IconProvider? closeIcon,
this.normalButtonColor = Colors.black,
this.hoverButtonColor = Colors.black,
this.disabledButtonColor = Colors.black12,
this.normalButtonBackground,
this.hoverButtonBackground,
this.disabledButtonBackground,
double buttonIconSize = TabbedViewThemeConstants.defaultIconSize,
this.verticalAlignment = VerticalAlignment.center,
double buttonsOffset = 0,
this.buttonPadding,
double buttonsGap = 0,
this.decoration,
this.draggingDecoration,
this.draggingOpacity = 0.3,
this.innerBottomBorder,
this.innerTopBorder,
this.textStyle = const TextStyle(fontSize: 13),
this.padding,
this.paddingWithoutButton,
this.margin,
TabStatusThemeData? selectedStatus,
TabStatusThemeData? highlightedStatus,
TabStatusThemeData? disabledStatus})
: this._buttonsOffset = buttonsOffset >= 0 ? buttonsOffset : 0,
this._buttonsGap = buttonsGap >= 0 ? buttonsGap : 0,
this.buttonIconSize =
TabbedViewThemeConstants.normalize(buttonIconSize),
this.closeIcon = closeIcon == null
? IconProvider.path(TabbedViewIcons.close)
: closeIcon,
this.selectedStatus =
selectedStatus != null ? selectedStatus : TabStatusThemeData(),
this.highlightedStatus = highlightedStatus != null
? highlightedStatus
: TabStatusThemeData();