ReorderableRow constructor

ReorderableRow({
  1. required ReorderCallback onReorder,
  2. Key? key,
  3. Widget? header,
  4. Widget? footer,
  5. EdgeInsets? padding,
  6. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  7. MainAxisSize mainAxisSize = MainAxisSize.max,
  8. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  9. TextDirection? textDirection,
  10. VerticalDirection verticalDirection = VerticalDirection.down,
  11. TextBaseline? textBaseline,
  12. List<Widget> children = const <Widget>[],
  13. BuildDraggableFeedback? buildDraggableFeedback,
  14. NoReorderCallback? onNoReorder,
  15. ReorderStartedCallback? onReorderStarted,
  16. ScrollController? scrollController,
  17. bool needsLongPressDraggable = true,
  18. double draggingWidgetOpacity = 0.2,
  19. Duration? reorderAnimationDuration,
  20. Duration? scrollAnimationDuration,
  21. Widget draggedItemBuilder(
    1. BuildContext context,
    2. int index
    )?,
  22. bool ignorePrimaryScrollController = false,
})

Implementation

ReorderableRow({
  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.horizontal,
          scrollDirection: Axis.horizontal,
          padding: padding,
          draggedItemBuilder: draggedItemBuilder,
          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,
          ignorePrimaryScrollController: ignorePrimaryScrollController);