ComTabBar constructor

const ComTabBar({
  1. Key? key,
  2. required int length,
  3. required List<Widget> tabs,
  4. Color? labelColor,
  5. Color? unselectedLabelColor,
  6. TextStyle? labelStyle,
  7. BoxDecoration? indicator,
  8. TabAlignment? tabAlignment,
  9. EdgeInsets? labelPadding,
  10. bool? isScrollable,
  11. ValueChanged<int>? onTap,
  12. int initialIndex = 0,
  13. double indicatorBottom = 8,
  14. double indicatorWidth = 12,
})

Implementation

const ComTabBar({
  super.key,
  required this.length,
  required this.tabs,
  this.labelColor,
  this.unselectedLabelColor,
  this.labelStyle,
  this.indicator,
  this.tabAlignment,
  this.labelPadding,
  this.isScrollable,
  this.onTap,
  this.initialIndex = 0,
  this.indicatorBottom = 8,
  this.indicatorWidth = 12,
});