ReorderableTabBar constructor
const
ReorderableTabBar({
- Key? key,
- required List<
Widget> tabs, - TabController? controller,
- bool isScrollable = false,
- EdgeInsetsGeometry? padding,
- Color? indicatorColor,
- bool automaticIndicatorColorAdjustment = true,
- double indicatorWeight = 2.0,
- EdgeInsetsGeometry indicatorPadding = EdgeInsets.zero,
- Decoration? indicator,
- TabBarIndicatorSize? indicatorSize,
- Color? labelColor,
- TextStyle? labelStyle,
- EdgeInsetsGeometry? labelPadding,
- Color? unselectedLabelColor,
- TextStyle? unselectedLabelStyle,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- MaterialStateProperty<
Color?> ? overlayColor, - MouseCursor? mouseCursor,
- bool? enableFeedback,
- ValueChanged<
int> ? onTap, - ScrollPhysics? physics,
- OnReorder? onReorder,
- bool defaultIndicator = false,
- BorderRadius? tabBorderRadius,
- Color? reorderingTabBackgroundColor,
- Color? tabBackgroundColor,
- bool buildDefaultDragHandles = true,
- bool useDelayedDragStartListener = false,
Implementation
const ReorderableTabBar({
Key? key,
required this.tabs,
this.controller,
this.isScrollable = false,
this.padding,
this.indicatorColor,
this.automaticIndicatorColorAdjustment = true,
this.indicatorWeight = 2.0,
this.indicatorPadding = EdgeInsets.zero,
this.indicator,
this.indicatorSize,
this.labelColor,
this.labelStyle,
this.labelPadding,
this.unselectedLabelColor,
this.unselectedLabelStyle,
this.dragStartBehavior = DragStartBehavior.start,
this.overlayColor,
this.mouseCursor,
this.enableFeedback,
this.onTap,
this.physics,
this.onReorder,
this.defaultIndicator = false,
this.tabBorderRadius,
this.reorderingTabBackgroundColor,
this.tabBackgroundColor,
this.buildDefaultDragHandles = true,
this.useDelayedDragStartListener = false,
}) : assert(indicator != null || (indicatorWeight > 0.0)),
super(key: key);