TabThemeData constructor

TabThemeData({
  1. IconProvider? closeIcon,
  2. Color normalButtonColor = Colors.black,
  3. Color hoverButtonColor = Colors.black,
  4. Color disabledButtonColor = Colors.black12,
  5. BoxDecoration? normalButtonBackground,
  6. BoxDecoration? hoverButtonBackground,
  7. BoxDecoration? disabledButtonBackground,
  8. double buttonIconSize = TabbedViewThemeConstants.defaultIconSize,
  9. VerticalAlignment verticalAlignment = VerticalAlignment.center,
  10. double buttonsOffset = 0,
  11. EdgeInsetsGeometry? buttonPadding,
  12. double buttonsGap = 0,
  13. BoxDecoration? decoration,
  14. BoxDecoration? draggingDecoration,
  15. double draggingOpacity = 0.3,
  16. BorderSide? innerBottomBorder,
  17. BorderSide? innerTopBorder,
  18. TextStyle? textStyle = const TextStyle(fontSize: 13),
  19. EdgeInsetsGeometry? padding,
  20. EdgeInsetsGeometry? paddingWithoutButton,
  21. EdgeInsetsGeometry? margin,
  22. TabStatusThemeData? selectedStatus,
  23. TabStatusThemeData? highlightedStatus,
  24. 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();