CustomTabBar constructor
const
CustomTabBar({
- required List<
Widget> tabs, - Key? key,
- TabController? controller,
- EdgeInsetsGeometry? padding,
- Color? indicatorColor,
- bool automaticIndicatorColorAdjustment = true,
- double indicatorWeight = 2.0,
- EdgeInsetsGeometry indicatorPadding = EdgeInsets.zero,
- UnderlineTabIndicator? indicator,
- TabBarIndicatorSize? indicatorSize,
- Color? labelColor,
- Color? unselectedLabelColor,
- TextStyle? labelStyle,
- TextStyle? unselectedLabelStyle,
- EdgeInsetsGeometry? labelPadding,
- ValueChanged<
int> ? onTap, - bool isPrimary = true,
Implementation
const CustomTabBar({
required this.tabs,
super.key,
this.controller,
this.padding,
this.indicatorColor,
this.automaticIndicatorColorAdjustment = true,
this.indicatorWeight = 2.0,
this.indicatorPadding = EdgeInsets.zero,
this.indicator,
this.indicatorSize,
this.labelColor,
this.unselectedLabelColor,
this.labelStyle,
this.unselectedLabelStyle,
this.labelPadding,
this.onTap,
bool isPrimary = true,
}) : _isPrimary = isPrimary;