const
PreferredSizeWidget.tabBar(- {Key? key,
- required List<Widget> tabs,
- @Default(false) bool isScrollable,
- IntSelectionCallback? onTap,
- EdgeInsets? padding,
- Color? indicatorColor,
- @Default(true) bool automaticIndicatorColorAdjustment,
- @Default(2.0) double indicatorWeight,
- @Default(EdgeInsets.zero) EdgeInsets indicatorPadding,
- Decoration? indicator,
- TabBarIndicatorSize? indicatorSize,
- Color? dividerColor,
- Color? labelColor,
- TextStyle? labelStyle,
- EdgeInsets? labelPadding,
- Color? unselectedLabelColor,
- TextStyle? unselectedLabelStyle,
- @Default(DragStartBehavior.start) DragStartBehavior dragStartBehavior,
- MaterialStateProperty? overlayColor,
- MouseCursor? mouseCursor,
- bool? enableFeedback,
- ScrollPhysics? physics,
- BorderRadius? splashBorderRadius}
)
Implementation
const factory PreferredSizeWidget.tabBar({
Key? key,
required List<Widget> tabs,
@Default(false) bool isScrollable,
IntSelectionCallback? onTap,
EdgeInsets? padding,
Color? indicatorColor,
@Default(true) bool automaticIndicatorColorAdjustment,
@Default(2.0) double indicatorWeight,
@Default(EdgeInsets.zero) EdgeInsets indicatorPadding,
Decoration? indicator,
TabBarIndicatorSize? indicatorSize,
Color? dividerColor,
Color? labelColor,
TextStyle? labelStyle,
EdgeInsets? labelPadding,
Color? unselectedLabelColor,
TextStyle? unselectedLabelStyle,
@Default(DragStartBehavior.start) DragStartBehavior dragStartBehavior,
MaterialStateProperty? overlayColor,
MouseCursor? mouseCursor,
bool? enableFeedback,
ScrollPhysics? physics,
BorderRadius? splashBorderRadius,
}) = TabBar;