BasicTabBar constructor

BasicTabBar({
  1. Key? key,
  2. TabController? controller,
  3. bool isScrollable = false,
  4. EdgeInsetsGeometry? padding,
  5. bool automaticIndicatorColorAdjustment = true,
  6. double indicatorWeight = 2.0,
  7. EdgeInsetsGeometry indicatorPadding = EdgeInsets.zero,
  8. Decoration? indicator,
  9. TabBarIndicatorSize? indicatorSize = TabBarIndicatorSize.label,
  10. Color? dividerColor,
  11. EdgeInsetsGeometry? labelPadding,
  12. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  13. MaterialStateProperty<Color?>? overlayColor,
  14. MouseCursor? mouseCursor,
  15. bool? enableFeedback,
  16. ValueChanged<int>? onTap,
  17. ScrollPhysics? physics,
  18. InteractiveInkFeatureFactory? splashFactory,
  19. BorderRadius? splashBorderRadius,
  20. TextStyle? labelStyle,
  21. TextStyle? unselectedLabelStyle,
  22. Color? indicatorColor,
  23. Color? labelColor,
  24. Color? unselectedLabelColor = UCS.black70,
  25. String? fontFamily,
  26. FontType? fontType,
  27. double fontSize = 16,
  28. double height = 38,
  29. List<Widget>? tabs,
  30. List<String>? list,
})

Implementation

BasicTabBar({
  super.key,
  super.controller,
  super.isScrollable = false,
  super.padding,
  super.automaticIndicatorColorAdjustment = true,
  super.indicatorWeight = 2.0,
  super.indicatorPadding = EdgeInsets.zero,
  super.indicator,
  super.indicatorSize = TabBarIndicatorSize.label,
  super.dividerColor,
  super.labelPadding,
  super.dragStartBehavior = DragStartBehavior.start,
  super.overlayColor,
  super.mouseCursor,
  super.enableFeedback,
  super.onTap,
  super.physics,
  super.splashFactory,
  super.splashBorderRadius,
  TextStyle? labelStyle,
  TextStyle? unselectedLabelStyle,
  Color? indicatorColor,
  Color? labelColor,
  super.unselectedLabelColor = UCS.black70,
  String? fontFamily,
  FontType? fontType,
  double fontSize = 16,
  double height = 38,
  List<Widget>? tabs,
  List<String>? list,
})  : assert(tabs != null || list != null),
      super(
          tabs: tabs ??
              list?.builder((value) => Tab(text: value, height: height)) ??
              [],
          labelColor: labelColor ?? GlobalConfig().currentColor,
          indicatorColor:
              indicatorColor ?? labelColor ?? GlobalConfig().currentColor,
          labelStyle: labelStyle ??
              TStyle(
                  fontFamily: fontFamily,
                  fontSize: fontSize,
                  fontType: fontType),
          unselectedLabelStyle: unselectedLabelStyle ??
              TStyle(
                  fontFamily: fontFamily,
                  fontSize: fontSize,
                  fontType: fontType));