BasicTabBar.indicator constructor

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

Implementation

BasicTabBar.indicator({
  super.key,
  super.controller,
  super.isScrollable = false,
  super.padding,
  super.automaticIndicatorColorAdjustment = true,
  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 = UCS.white,
  Color 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)) ??
              [],
          indicatorWeight: 0,
          indicatorSize: TabBarIndicatorSize.tab,
          indicator: BoxDecoration(
              color: indicatorColor ?? GlobalConfig().currentColor,
              borderRadius: BorderRadius.circular(4)),
          labelColor: labelColor,
          dividerColor: UCS.transparent,
          unselectedLabelColor: unselectedLabelColor,
          labelStyle: labelStyle ??
              TStyle(
                  fontFamily: fontFamily,
                  fontSize: fontSize,
                  fontType: fontType),
          unselectedLabelStyle: unselectedLabelStyle ??
              TStyle(
                  fontFamily: fontFamily,
                  fontSize: fontSize,
                  fontType: fontType));