TabBarBox constructor
const
TabBarBox({
- Key? key,
- required TabController controller,
- required List<
Widget> tabs, - EdgeInsetsGeometry indicatorPadding = EdgeInsets.zero,
- TabBarLevelPosition levelPosition = TabBarLevelPosition.right,
- EdgeInsetsGeometry? labelPadding,
- bool isScrollable = true,
- AlignmentGeometry? alignment,
- Widget? tabBarLevel,
- Color? labelColor,
- Color? unselectedLabelColor,
- TabBarIndicatorSize? indicatorSize = TabBarIndicatorSize.label,
- TextStyle? labelStyle,
- TextStyle? unselectedLabelStyle,
- double indicatorWeight = 1,
- Decoration? indicator,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- double? height,
- Decoration? decoration,
- double? width,
- ValueChanged<
int> ? onTap, - Color? indicatorColor,
- bool automaticIndicatorColorAdjustment = true,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- MaterialStateProperty<
Color?> ? overlayColor, - MouseCursor? mouseCursor,
- bool? enableFeedback,
- ScrollPhysics? physics,
Implementation
const TabBarBox({
super.key,
required this.controller,
required this.tabs,
this.indicatorPadding = EdgeInsets.zero,
this.levelPosition = TabBarLevelPosition.right,
this.labelPadding,
this.isScrollable = true,
this.alignment,
this.tabBarLevel,
this.labelColor,
this.unselectedLabelColor,
this.indicatorSize = TabBarIndicatorSize.label,
this.labelStyle,
this.unselectedLabelStyle,
this.indicatorWeight = 1,
this.indicator,
this.margin,
this.padding,
this.height,
this.decoration,
this.width,
this.onTap,
this.indicatorColor,
this.automaticIndicatorColorAdjustment = true,
this.dragStartBehavior = DragStartBehavior.start,
this.overlayColor,
this.mouseCursor,
this.enableFeedback,
this.physics,
});