ReorderableFlex constructor
ReorderableFlex({
- Key? key,
- Widget? header,
- required List<
Widget> children, - required ReorderCallback onReorder,
- required Axis direction,
- Axis scrollDirection = Axis.vertical,
- EdgeInsets? padding,
- BuildItemsContainer? buildItemsContainer,
- BuildDraggableFeedback? buildDraggableFeedback,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
- NoReorderCallback? onNoReorder,
- ReorderStartedCallback? onReorderStarted,
- ScrollController? scrollController,
- bool needsLongPressDraggable = true,
- double draggingWidgetOpacity = 0.2,
- Duration? reorderAnimationDuration,
- Duration? scrollAnimationDuration,
- Widget draggedItemBuilder(
- BuildContext context,
- int index
- 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);