CommonTabBar constructor
const
CommonTabBar({
- Key? key,
- required List<
String> tabs, - required dynamic onTabChange(),
- int defaultTab = 0,
- double? height,
- bool thinIndicator = true,
- EdgeInsets? tabPadding = EdgeInsets.zero,
- double? tabSpace,
- double? tabWidth,
- double? padding,
- TabStyle tabStyle = TabStyle.line,
- bool selectBold = false,
- Color? selectColor,
- Color? unselectColor,
- Color? selectBgColor,
- Color? unselectBgColor,
- double? selectFontSize,
- double? unselectFontSize,
- Color? indicatorColor,
- double? indicatorHeight,
- double? indicatorRadius,
- double? tabRadius,
- Color? dividerColor,
- double? dividerHeight,
- bool tabEqual = true,
Implementation
const CommonTabBar({super.key, required this.tabs, required this.onTabChange, this.defaultTab = 0, this.height, this.thinIndicator = true,
this.tabPadding = EdgeInsets.zero, this.tabSpace, this.tabWidth, this.padding, this.tabStyle = TabStyle.line, this.selectBold = false,
this.selectColor, this.unselectColor, this.selectBgColor, this.unselectBgColor,
this.selectFontSize, this.unselectFontSize, this.indicatorColor, this.indicatorHeight, this.indicatorRadius, this.tabRadius,
this.dividerColor, this.dividerHeight, this.tabEqual = true});