CommonTabBar constructor

const CommonTabBar({
  1. Key? key,
  2. required List<String> tabs,
  3. required dynamic onTabChange(
    1. int
    ),
  4. int defaultTab = 0,
  5. double? height,
  6. bool thinIndicator = true,
  7. EdgeInsets? tabPadding = EdgeInsets.zero,
  8. double? tabSpace,
  9. double? tabWidth,
  10. double? padding,
  11. TabStyle tabStyle = TabStyle.line,
  12. bool selectBold = false,
  13. Color? selectColor,
  14. Color? unselectColor,
  15. Color? selectBgColor,
  16. Color? unselectBgColor,
  17. double? selectFontSize,
  18. double? unselectFontSize,
  19. Color? indicatorColor,
  20. double? indicatorHeight,
  21. double? indicatorRadius,
  22. double? tabRadius,
  23. Color? dividerColor,
  24. double? dividerHeight,
  25. bool tabEqual = true,
})

Implementation

const CommonTabBar({super.key, required this.tabs, required this.onTabChange, this.defaultTab = 0, this.height, this.thinIndicator = true,
  this.tabPadding = EdgeInsets.zero, this.tabSpace, this.tabWidth, this.padding, this.tabStyle = TabStyle.line, this.selectBold = false,
  this.selectColor, this.unselectColor, this.selectBgColor, this.unselectBgColor,
  this.selectFontSize, this.unselectFontSize, this.indicatorColor, this.indicatorHeight, this.indicatorRadius, this.tabRadius,
  this.dividerColor, this.dividerHeight, this.tabEqual = true});