BaseTabBar constructor
BaseTabBar({
- Key? key,
- required TabController controller,
- required List<
String> tabs, - bool smoothIndicator = true,
- ValueChanged<
int> ? onChange, - Color? labelColor,
- Color? unselectedLabelColor,
- TextStyle? labelStyle,
- TextStyle? unselectedLabelStyle,
- EdgeInsetsGeometry? tabPadding,
- double? tabSpacing,
- Color? indicatorColor,
- double? indicatorHeight,
- double? indicatorWidth,
- EdgeInsetsGeometry? indicatorPadding,
- IndicatorAlignment indicatorAlignment = IndicatorAlignment.center,
- Color? backgroundColor,
- double? height,
- ScrollController? scrollController,
Implementation
BaseTabBar({
super.key,
required this.controller,
required this.tabs,
this.smoothIndicator = true,
this.onChange,
this.labelColor,
this.unselectedLabelColor,
this.labelStyle,
this.unselectedLabelStyle,
this.tabPadding,
this.tabSpacing,
this.indicatorColor,
this.indicatorHeight,
this.indicatorWidth,
this.indicatorPadding,
this.indicatorAlignment = IndicatorAlignment.center,
this.backgroundColor,
this.height,
this.scrollController,
}) : assert(tabs.isNotEmpty, 'tabs must not be empty');