TTabs<T> constructor

const TTabs<T>({
  1. Key? key,
  2. required List<TTab<T>> tabs,
  3. TTabController<T>? controller,
  4. T? selectedValue,
  5. ValueChanged<T>? onTabChanged,
  6. Color? borderColor,
  7. Color? selectedColor,
  8. Color? unselectedColor,
  9. Color? disabledColor,
  10. Color? indicatorColor,
  11. EdgeInsets? tabPadding,
  12. double tabSpacing = 2,
  13. double tabRunSpacing = 2,
  14. double? indicatorWidth = 1,
  15. bool inline = false,
  16. Axis axis = Axis.horizontal,
  17. bool scrollable = false,
  18. bool showNavigationButtons = true,
  19. bool wrap = false,
  20. Widget tabBuilder(
    1. BuildContext context,
    2. TTab<T> tab,
    3. bool isSelected
    )?,
  21. Color? navigationButtonColor,
  22. Color? navigationButtonBackgroundColor,
})

Creates a tabs component.

Implementation

const TTabs({
  super.key,
  required this.tabs,
  this.controller,
  this.selectedValue,
  this.onTabChanged,
  this.borderColor,
  this.selectedColor,
  this.unselectedColor,
  this.disabledColor,
  this.indicatorColor,
  this.tabPadding,
  this.tabSpacing = 2,
  this.tabRunSpacing = 2,
  this.indicatorWidth = 1,
  this.inline = false,
  this.axis = Axis.horizontal,
  this.scrollable = false,
  this.showNavigationButtons = true,
  this.wrap = false,
  this.tabBuilder,
  this.navigationButtonColor,
  this.navigationButtonBackgroundColor,
}) : assert(!wrap || !scrollable, 'Wrap and scrollable modes are mutually exclusive');