BlossomTabBar<T> constructor

const BlossomTabBar<T>({
  1. Key? key,
  2. required Color selectedColor,
  3. Color? dragColor,
  4. Color? stickyColor,
  5. Color? backgroundColor,
  6. Color? bottomColor,
  7. Color? dividerColor,
  8. Color? shadowColor,
  9. Color? dragShadowColor,
  10. double height = 42,
  11. double tabBarMargin = 4,
  12. EdgeInsets margin = EdgeInsets.zero,
  13. double bottomBarHeight = 0,
  14. Widget? bottomBar,
  15. bool showBottomBarOnOppositeSide = 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 BlossomTabBar({
  Key? key,
  required this.selectedColor,
  this.dragColor,
  this.stickyColor,
  this.backgroundColor,
  this.bottomColor,
  this.dividerColor,
  this.shadowColor,
  this.dragShadowColor,
  this.height = 42,
  this.tabBarMargin = 4,
  this.margin = EdgeInsets.zero,
  this.bottomBarHeight = 0,
  this.bottomBar,
  this.showBottomBarOnOppositeSide = 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);