From 6a2b7c318e4e82a073698c3be1da27be37e10d5a Mon Sep 17 00:00:00 2001 From: "Afanasov S." Date: Wed, 19 Mar 2025 14:39:34 +0000 Subject: [PATCH 1/2] . --- lib/sortable_wrap.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/sortable_wrap.dart b/lib/sortable_wrap.dart index 2fbe910..4ad4b5f 100644 --- a/lib/sortable_wrap.dart +++ b/lib/sortable_wrap.dart @@ -8,6 +8,7 @@ class SortableWrap extends StatefulWidget { required this.children, required this.onSorted, this.onSortStart, + this.alignment, this.onSortCancel, this.spacing = 0.0, this.runSpacing = 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(), From 30d0ddc00803e4926166e97fdc17c9e3efdeafaa Mon Sep 17 00:00:00 2001 From: "Afanasov S." Date: Wed, 19 Mar 2025 14:50:20 +0000 Subject: [PATCH 2/2] add wrapAlignment --- lib/sortable_wrap.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sortable_wrap.dart b/lib/sortable_wrap.dart index 4ad4b5f..f9d77fa 100644 --- a/lib/sortable_wrap.dart +++ b/lib/sortable_wrap.dart @@ -7,8 +7,8 @@ class SortableWrap extends StatefulWidget { Key? key, required this.children, required this.onSorted, + required this.alignment, this.onSortStart, - this.alignment, this.onSortCancel, this.spacing = 0.0, this.runSpacing = 0.0,