TabBarWidget<T> constructor
const
TabBarWidget<T> ({
- Key? key,
- required List<
T> tabs, - required ValueChanged<
int> onTabChanged, - required String labelBuilder(
- T item
- Widget tabBuilder(
- T item,
- bool isSelected
- int initialIndex = 0,
- double height = 56,
- double borderRadius = 14,
- Color? selectedColor,
- Color? unselectedColor,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 20, vertical: 12),
- EdgeInsetsGeometry margin = const EdgeInsets.only(right: 20),
- 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,
});