BasicTabBar.indicator constructor
BasicTabBar.indicator({
- Key? key,
- TabController? controller,
- bool isScrollable = false,
- EdgeInsetsGeometry? padding,
- bool automaticIndicatorColorAdjustment = true,
- EdgeInsetsGeometry? labelPadding,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- MaterialStateProperty<
Color?> ? overlayColor, - MouseCursor? mouseCursor,
- bool? enableFeedback,
- ValueChanged<
int> ? onTap, - ScrollPhysics? physics,
- InteractiveInkFeatureFactory? splashFactory,
- BorderRadius? 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,
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));