ReorderableColumn constructor
ReorderableColumn({
- required ReorderCallback onReorder,
- Key? key,
- Widget? header,
- EdgeInsets? padding,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
- MainAxisSize mainAxisSize = MainAxisSize.max,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
- TextDirection? textDirection,
- VerticalDirection verticalDirection = VerticalDirection.down,
- TextBaseline? textBaseline,
- List<
Widget> children = const <Widget>[], - BuildDraggableFeedback? buildDraggableFeedback,
- 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,
Implementation
ReorderableColumn({
required ReorderCallback onReorder,
Key? key,
Widget? header,
Widget? footer,
EdgeInsets? padding,
MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
MainAxisSize mainAxisSize = MainAxisSize.max,
CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
TextDirection? textDirection,
VerticalDirection verticalDirection = VerticalDirection.down,
TextBaseline? textBaseline,
List<Widget> children = const <Widget>[],
BuildDraggableFeedback? buildDraggableFeedback,
NoReorderCallback? onNoReorder,
ReorderStartedCallback? onReorderStarted,
ScrollController? scrollController,
bool needsLongPressDraggable = true,
double draggingWidgetOpacity = 0.2,
Duration? reorderAnimationDuration,
Duration? scrollAnimationDuration,
Widget Function(BuildContext context, int index)? draggedItemBuilder,
bool ignorePrimaryScrollController = false,
}) : super(
key: key,
header: header,
footer: footer,
children: children,
onReorder: onReorder,
onNoReorder: onNoReorder,
onReorderStarted: onReorderStarted,
direction: Axis.vertical,
padding: padding,
buildItemsContainer:
(BuildContext context, Axis direction, List<Widget> children) {
return Flex(
direction: direction,
mainAxisAlignment: mainAxisAlignment,
mainAxisSize: mainAxisSize,
crossAxisAlignment: crossAxisAlignment,
textDirection: textDirection,
verticalDirection: verticalDirection,
textBaseline: textBaseline,
children: children);
},
buildDraggableFeedback: buildDraggableFeedback,
mainAxisAlignment: mainAxisAlignment,
scrollController: scrollController,
needsLongPressDraggable: needsLongPressDraggable,
draggingWidgetOpacity: draggingWidgetOpacity,
reorderAnimationDuration: reorderAnimationDuration,
scrollAnimationDuration: scrollAnimationDuration,
draggedItemBuilder: draggedItemBuilder,
ignorePrimaryScrollController: ignorePrimaryScrollController);