TopTabBar constructor
const
TopTabBar({
- Key? tabBarKey,
- Key? tabBarViewKey,
- required List<
TabItem> children, - TabController? tabController,
- Decoration? indicator,
- Color? dividerColor,
- bool? enableFeedback,
- Color? indicatorColor,
- TabBarIndicatorSize? indicatorSize,
- Color? labelColor,
- EdgeInsetsGeometry? labelPadding,
- TextStyle? labelStyle,
- MouseCursor? mouseCursor,
- dynamic onTap()?,
- MaterialStateProperty<
Color?> ? overlayColor, - EdgeInsetsGeometry? padding,
- ScrollPhysics? physics,
- BorderRadius? splashBorderRadius,
- InteractiveInkFeatureFactory? splashFactory,
- Color? unselectedLabelColor,
- TextStyle? unselectedLabelStyle,
- ScrollPhysics? tabBarViewPhysics,
- Duration? animationDuration,
- int initialIndex = 0,
- bool primaryTabBar = true,
- bool isScrollable = false,
- double indicatorWeight = 2.0,
- double tabBarViewViewportFraction = 1.0,
- EdgeInsetsGeometry indicatorPadding = EdgeInsets.zero,
- Clip tabBarViewClipBehavior = Clip.hardEdge,
- bool automaticIndicatorColorAdjustment = true,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- 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,
});