BasicTabBar constructor
BasicTabBar({
- Key? key,
- TabController? controller,
- bool isScrollable = false,
- EdgeInsetsGeometry? padding,
- bool automaticIndicatorColorAdjustment = true,
- double indicatorWeight = 2.0,
- EdgeInsetsGeometry indicatorPadding = EdgeInsets.zero,
- Decoration? indicator,
- TabBarIndicatorSize? indicatorSize = TabBarIndicatorSize.label,
- Color? dividerColor,
- 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,
- Color? unselectedLabelColor = UCS.black70,
- String? fontFamily,
- FontType? fontType,
- double fontSize = 16,
- double height = 38,
- List<
Widget> ? tabs, - 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));