ReorderableTabBar constructor

const ReorderableTabBar({
  1. Key? key,
  2. required List<Widget> tabs,
  3. TabController? controller,
  4. bool isScrollable = false,
  5. EdgeInsetsGeometry? padding,
  6. Color? indicatorColor,
  7. bool automaticIndicatorColorAdjustment = true,
  8. double indicatorWeight = 2.0,
  9. EdgeInsetsGeometry indicatorPadding = EdgeInsets.zero,
  10. Decoration? indicator,
  11. TabBarIndicatorSize? indicatorSize,
  12. Color? labelColor,
  13. TextStyle? labelStyle,
  14. EdgeInsetsGeometry? labelPadding,
  15. Color? unselectedLabelColor,
  16. TextStyle? unselectedLabelStyle,
  17. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  18. MaterialStateProperty<Color?>? overlayColor,
  19. MouseCursor? mouseCursor,
  20. bool? enableFeedback,
  21. ValueChanged<int>? onTap,
  22. ScrollPhysics? physics,
  23. OnReorder? onReorder,
  24. bool defaultIndicator = false,
  25. BorderRadius? tabBorderRadius,
  26. Color? reorderingTabBackgroundColor,
  27. Color? tabBackgroundColor,
  28. bool buildDefaultDragHandles = true,
  29. 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);