BaseTabBar constructor

BaseTabBar({
  1. Key? key,
  2. required TabController controller,
  3. required List<String> tabs,
  4. bool smoothIndicator = true,
  5. ValueChanged<int>? onChange,
  6. Color? labelColor,
  7. Color? unselectedLabelColor,
  8. TextStyle? labelStyle,
  9. TextStyle? unselectedLabelStyle,
  10. EdgeInsetsGeometry? tabPadding,
  11. double? tabSpacing,
  12. Color? indicatorColor,
  13. double? indicatorHeight,
  14. double? indicatorWidth,
  15. EdgeInsetsGeometry? indicatorPadding,
  16. IndicatorAlignment indicatorAlignment = IndicatorAlignment.center,
  17. Color? backgroundColor,
  18. double? height,
  19. 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');