Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/sortable_wrap.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -15,6 +16,7 @@ class SortableWrap extends StatefulWidget {
}) : super(key: key);

final List<Widget> children;
final WrapAlignment alignment;

/// Events
final void Function(int oldIndex, int newIndex) onSorted;
Expand Down Expand Up @@ -112,6 +114,7 @@ class SortableWrapState extends State<SortableWrap> {
builder: (context) {
wrapperContext = context;
return Wrap(
alignment: widget.alignment,
spacing: widget.spacing,
runSpacing: widget.runSpacing,
children: animationElements.map((e) => enclosedWithDraggable(e)).toList(),
Expand Down