ReorderableFlex constructor

ReorderableFlex({
  1. Key? key,
  2. Widget? header,
  3. Widget? footer,
  4. required List<Widget> children,
  5. required ReorderCallback onReorder,
  6. required Axis direction,
  7. Axis scrollDirection = Axis.vertical,
  8. EdgeInsets? padding,
  9. BuildItemsContainer? buildItemsContainer,
  10. BuildDraggableFeedback? buildDraggableFeedback,
  11. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  12. NoReorderCallback? onNoReorder,
  13. ReorderStartedCallback? onReorderStarted,
  14. ScrollController? scrollController,
  15. bool needsLongPressDraggable = true,
  16. double draggingWidgetOpacity = 0.2,
  17. Duration? reorderAnimationDuration,
  18. Duration? scrollAnimationDuration,
  19. Widget draggedItemBuilder(
    1. BuildContext context,
    2. int index
    )?,
  20. bool ignorePrimaryScrollController = false,
})

Creates a reorderable list.

Implementation

ReorderableFlex({
  Key? key,
  this.header,
  this.footer,
  required this.children,
  required this.onReorder,
  required this.direction,
  this.scrollDirection = Axis.vertical,
  this.padding,
  this.buildItemsContainer,
  this.buildDraggableFeedback,
  this.mainAxisAlignment = MainAxisAlignment.start,
  this.onNoReorder,
  this.onReorderStarted,
  this.scrollController,
  this.needsLongPressDraggable = true,
  this.draggingWidgetOpacity = 0.2,
  this.reorderAnimationDuration,
  this.scrollAnimationDuration,
  this.draggedItemBuilder,
  this.ignorePrimaryScrollController = false,
})  : assert(
        children.every((Widget w) => w.key != null),
        'All children of this widget must have a key.',
      ),
      super(key: key);