BlossomVerticalTabBar<T> constructor

const BlossomVerticalTabBar<T>({
  1. Key? key,
  2. required Color selectedColor,
  3. Color? dragColor,
  4. Color? stickyColor,
  5. Color? backgroundColor,
  6. Color? dividerColor,
  7. Color? shadowColor,
  8. Color? dragShadowColor,
  9. double width = 42,
  10. double sideBarWidth = 0,
  11. double tabBarMargin = 4,
  12. EdgeInsets margin = EdgeInsets.zero,
  13. Widget? sideBar,
  14. Color? sideBarColor,
  15. bool showSideBarOnOppositeSide = false,
  16. bool shiftOnDrag = false,
  17. Radius borderRadius = const Radius.circular(8.0),
  18. bool showIndicator = false,
  19. bool showIndicatorOnOppositeSide = false,
  20. bool applyIndicatorIndent = true,
  21. double indicatorThickness = 4.0,
  22. Color? indicatorColor,
  23. List<Widget> actions = const [],
  24. void onSecondaryTap(
    1. BlossomTab<T>
    )?,
  25. required Widget tabBuilder(
    1. BuildContext context,
    2. BlossomTab<T> tab,
    3. bool isActive
    ),
  26. List<Widget> tabActions(
    1. BuildContext context,
    2. BlossomTab<T> tab
    )?,
})

Implementation

const BlossomVerticalTabBar({
  Key? key,
  required this.selectedColor,
  this.dragColor,
  this.stickyColor,
  this.backgroundColor,
  this.dividerColor,
  this.shadowColor,
  this.dragShadowColor,
  this.width = 42,
  this.sideBarWidth = 0,
  this.tabBarMargin = 4,
  this.margin = EdgeInsets.zero,
  this.sideBar,
  this.sideBarColor,
  this.showSideBarOnOppositeSide = false,
  this.shiftOnDrag = false,
  this.borderRadius = const Radius.circular(8.0),
  this.showIndicator = false,
  this.showIndicatorOnOppositeSide = false,
  this.applyIndicatorIndent = true,
  this.indicatorThickness = 4.0,
  this.indicatorColor,
  this.actions = const [],
  this.onSecondaryTap,
  required this.tabBuilder,
  this.tabActions,
}) : super(key: key);