swipe_select 0.2.0
swipe_select: ^0.2.0 copied to clipboard
Swipe to multi-select for Flutter lists and grids: long press, edge strip or swipe across, with auto-scroll. ListView, GridView, slivers, chat and horizontal lists.
0.2.0 #
- Breaking:
IndexRange,applyRangeTransitionandRangeTransitionResultare no longer exported, the controller'sinternal*methods are private. - Breaking:
selectAllremoved, usesetSelection.
0.1.3 #
- Simpler internals: auto-scroll zone computed in one place, data changes mid-gesture re-apply the range from the initial selection instead of tracking keys. No API changes.
0.1.2 #
- README: links to the React Native, SwiftUI and Jetpack Compose versions.
0.1.1 #
- Shorter package description (pub.dev limit is 180 characters).
- README: iOS and Android recordings side by side.
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
