ComTabBar constructor
const
ComTabBar({
- Key? key,
- required int length,
- required List<
Widget> tabs, - Color? labelColor,
- Color? unselectedLabelColor,
- TextStyle? labelStyle,
- BoxDecoration? indicator,
- TabAlignment? tabAlignment,
- EdgeInsets? labelPadding,
- bool? isScrollable,
- ValueChanged<
int> ? onTap, - int initialIndex = 0,
- double indicatorBottom = 8,
- 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,
});