TabBarWidget<T> constructor

const TabBarWidget<T>({
  1. Key? key,
  2. required List<T> tabs,
  3. required ValueChanged<int> onTabChanged,
  4. required String labelBuilder(
    1. T item
    ),
  5. Widget tabBuilder(
    1. T item,
    2. bool isSelected
    )?,
  6. int initialIndex = 0,
  7. double height = 56,
  8. double borderRadius = 14,
  9. Color? selectedColor,
  10. Color? unselectedColor,
  11. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 20, vertical: 12),
  12. EdgeInsetsGeometry margin = const EdgeInsets.only(right: 20),
  13. double itemSpacing = 5,
})

Implementation

const TabBarWidget({
  super.key,
  required this.tabs,
  required this.onTabChanged,
  required this.labelBuilder,
  this.tabBuilder,
  this.initialIndex = 0,
  this.height = 56,
  this.borderRadius = 14,
  this.selectedColor,
  this.unselectedColor,
  this.padding = const EdgeInsets.symmetric(horizontal: 20, vertical: 12),
  this.margin = const EdgeInsets.only(right: 20),
  this.itemSpacing = 5,
});