TopTabBar constructor

const TopTabBar({
  1. Key? tabBarKey,
  2. Key? tabBarViewKey,
  3. required List<TabItem> children,
  4. TabController? tabController,
  5. Decoration? indicator,
  6. Color? dividerColor,
  7. bool? enableFeedback,
  8. Color? indicatorColor,
  9. TabBarIndicatorSize? indicatorSize,
  10. Color? labelColor,
  11. EdgeInsetsGeometry? labelPadding,
  12. TextStyle? labelStyle,
  13. MouseCursor? mouseCursor,
  14. dynamic onTap(
    1. int
    )?,
  15. MaterialStateProperty<Color?>? overlayColor,
  16. EdgeInsetsGeometry? padding,
  17. ScrollPhysics? physics,
  18. BorderRadius? splashBorderRadius,
  19. InteractiveInkFeatureFactory? splashFactory,
  20. Color? unselectedLabelColor,
  21. TextStyle? unselectedLabelStyle,
  22. ScrollPhysics? tabBarViewPhysics,
  23. Duration? animationDuration,
  24. int initialIndex = 0,
  25. bool primaryTabBar = true,
  26. bool isScrollable = false,
  27. double indicatorWeight = 2.0,
  28. double tabBarViewViewportFraction = 1.0,
  29. EdgeInsetsGeometry indicatorPadding = EdgeInsets.zero,
  30. Clip tabBarViewClipBehavior = Clip.hardEdge,
  31. bool automaticIndicatorColorAdjustment = true,
  32. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  33. DragStartBehavior tabBarViewDragStartBehavior = DragStartBehavior.start,
})

Implementation

const TopTabBar({
  this.tabBarKey,
  this.tabBarViewKey,
  required this.children,
  this.tabController,
  this.indicator,
  this.dividerColor,
  this.enableFeedback,
  this.indicatorColor,
  this.indicatorSize,
  this.labelColor,
  this.labelPadding,
  this.labelStyle,
  this.mouseCursor,
  this.onTap,
  this.overlayColor,
  this.padding,
  this.physics,
  this.splashBorderRadius,
  this.splashFactory,
  this.unselectedLabelColor,
  this.unselectedLabelStyle,
  this.tabBarViewPhysics,
  this.animationDuration,
  this.initialIndex = 0,
  this.primaryTabBar = true,
  this.isScrollable = false,
  this.indicatorWeight = 2.0,
  this.tabBarViewViewportFraction = 1.0,
  this.indicatorPadding = EdgeInsets.zero,
  this.tabBarViewClipBehavior = Clip.hardEdge,
  this.automaticIndicatorColorAdjustment = true,
  this.dragStartBehavior = DragStartBehavior.start,
  this.tabBarViewDragStartBehavior = DragStartBehavior.start,
});