PhoenixTabBar constructor

PhoenixTabBar({
  1. required List<BadgeTab>? tabs,
  2. BrnTabBarBadgeMode mode = BrnTabBarBadgeMode.average,
  3. bool isScroll = false,
  4. double? tabHeight,
  5. EdgeInsetsGeometry padding = EdgeInsets.zero,
  6. TabController? controller,
  7. Color backgroundcolor = const Color(0xffffffff),
  8. Color? indicatorColor,
  9. double? indicatorWeight,
  10. double? indicatorWidth,
  11. EdgeInsetsGeometry indicatorPadding = EdgeInsets.zero,
  12. Color? labelColor,
  13. TextStyle? labelStyle,
  14. EdgeInsetsGeometry labelPadding = EdgeInsets.zero,
  15. Color? unselectedLabelColor,
  16. TextStyle? unselectedLabelStyle,
  17. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  18. TabBarOnTap? onTap,
  19. double? tabWidth,
  20. bool hasDivider = false,
  21. bool hasIndex = false,
  22. bool showMore = false,
  23. String? moreWindowText,
  24. VoidCallback? onMorePop,
  25. CloseWindowController? closeController,
  26. BaseTabBarConfig? themeData,
  27. double? tagSpacing,
  28. int? preLineTagCount,
  29. double? tagHeight,
})

Implementation

PhoenixTabBar({
  required this.tabs,
  this.mode = BrnTabBarBadgeMode.average,
  this.isScroll = false,
  this.tabHeight,
  this.padding = EdgeInsets.zero,
  this.controller,
  this.backgroundcolor = const Color(0xffffffff),
  this.indicatorColor,
  this.indicatorWeight,
  this.indicatorWidth,
  this.indicatorPadding = EdgeInsets.zero,
  this.labelColor,
  this.labelStyle,
  this.labelPadding = EdgeInsets.zero,
  this.unselectedLabelColor,
  this.unselectedLabelStyle,
  this.dragStartBehavior = DragStartBehavior.start,
  this.onTap,
  this.tabWidth,
  this.hasDivider = false,
  this.hasIndex = false,
  this.showMore = false,
  this.moreWindowText,
  this.onMorePop,
  this.closeController,
  this.themeData,
  this.tagSpacing,
  this.preLineTagCount,
  this.tagHeight,
}) : assert(tabs != null) {
  themeData ??= BaseTabBarConfig();
  themeData = BaseThemeConfig.instance
      .getConfig(configId: themeData!.configId)
      .tabBarConfig
      .merge(themeData);
  themeData = themeData!.merge(BaseTabBarConfig(
    backgroundColor: backgroundcolor,
    tabHeight: tabHeight,
    indicatorHeight: indicatorWeight,
    indicatorWidth: indicatorWidth,
    labelStyle: BaseTextStyle.withStyle(labelStyle),
    unselectedLabelStyle: BaseTextStyle.withStyle(unselectedLabelStyle),
    tagSpacing: tagSpacing,
    preLineTagCount: preLineTagCount,
    tagHeight: tagHeight,
  ));
}