swipe_select 0.1.0
swipe_select: ^0.1.0 copied to clipboard
Swipe to multi-select for Flutter lists and grids: hold, drag, auto-scroll. Any item size, ListView / GridView / slivers, reverse (chat) and horizontal lists, edge-strip, long-press and swipe-across a [...]
0.1.0 #
First public release.
SwipeSelectwidget +SwipeSelectItem+SwipeSelectController- Activation: edge strip (start / end), long press, swipe across; combine several with
ActivationWhen(always/selectionMode/idle) - Works with
ListView,GridView,CustomScrollViewslivers;reverse(chat) and horizontal lists; items of any size - Auto-scroll that ramps up towards the edge
- Moving back restores the selection from gesture start
- Non-selectable items, forced selection mode,
onChangedonce per gesture - Data changes mid-gesture are remapped by key
SwipeSelectItem.builderrebuilds only rows whose selection changedcontroller.selectedis an unmodifiable view (no copying);controller.autoScrollDirectionfor highlighting the edge zone- Range bookkeeping is O(Δ) per step — long ranges (thousands of rows) stay cheap