flutter_sortable_wrap
1.0.5, released 3 years ago by an unverified publisher
A reorderable and sortable wrap widget written in pure Dart.
What it does
Provides a SortableWrap widget that allows users to rearrange child widgets using drag and drop interactions. It supports spacing, run spacing, and long-press to drag functionality across multiple platforms.
AI-written summary of version 1.0.5, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a Wrap layout where children can be reordered by dragging.
- You want a pure Dart solution supporting mobile, web, and desktop.
Skip it when
- You need standard linear reordering (use ReorderableListView instead).
- You require complex grid animations not supported by Wrap layouts.
Strengths
- Supports multiple platforms including iOS, Android, Web, macOS, Linux, and Windows.
- Simple API similar to standard Wrap widgets.
- Supports long-press to trigger dragging.
Weaknesses
- Limited feature documentation outside of basic reordering.
- No built-in state management for the underlying data array.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
SortableWrap(
children: children,
onSorted: (int oldIndex, int newIndex) {
setState(() {
your_data_array.insert(newIndex, your_data_array.removeAt(oldIndex));
});
},
spacing: 10,
runSpacing: 15,
)Alternatives
Packages that do the same job and could replace flutter_sortable_wrap.
- flutter_earth_globe
An interactive and fully customizable 3D Globe widget written in pure Dart.
80Compare - animated_reorderable
Animated, draggable reorderable ListView/GridView with built‑in swipe‑to‑delete.
73Compare - popup_menu_plus
A Flutter Popup Menu Widget written completely in Dart supporting both iOS and Android.
56Compare - popup_menu
A pure Dart popup menu widget for iOS and Android.
50Compare