TTabBar constructor

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

Implementation

TTabBar({
  super.key,
  required this.tabs,
  this.mode = TTabBarBadgeMode.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 ??= TTabBarConfig();
}