CustomTabBar constructor

const CustomTabBar({
  1. required List<Widget> tabs,
  2. Key? key,
  3. TabController? controller,
  4. EdgeInsetsGeometry? padding,
  5. Color? indicatorColor,
  6. bool automaticIndicatorColorAdjustment = true,
  7. double indicatorWeight = 2.0,
  8. EdgeInsetsGeometry indicatorPadding = EdgeInsets.zero,
  9. UnderlineTabIndicator? indicator,
  10. TabBarIndicatorSize? indicatorSize,
  11. Color? labelColor,
  12. Color? unselectedLabelColor,
  13. TextStyle? labelStyle,
  14. TextStyle? unselectedLabelStyle,
  15. EdgeInsetsGeometry? labelPadding,
  16. ValueChanged<int>? onTap,
  17. 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;