diff --git a/lib/sortable_wrap.dart b/lib/sortable_wrap.dart index 2fbe910..f9d77fa 100644 --- a/lib/sortable_wrap.dart +++ b/lib/sortable_wrap.dart @@ -7,6 +7,7 @@ class SortableWrap extends StatefulWidget { Key? key, required this.children, required this.onSorted, + required this.alignment, this.onSortStart, this.onSortCancel, this.spacing = 0.0, @@ -15,6 +16,7 @@ class SortableWrap extends StatefulWidget { }) : super(key: key); final List children; + final WrapAlignment alignment; /// Events final void Function(int oldIndex, int newIndex) onSorted; @@ -112,6 +114,7 @@ class SortableWrapState extends State { builder: (context) { wrapperContext = context; return Wrap( + alignment: widget.alignment, spacing: widget.spacing, runSpacing: widget.runSpacing, children: animationElements.map((e) => enclosedWithDraggable(e)).toList(),