Skip to main content

swipe_select 0.1.0 copy "swipe_select: ^0.1.0" to clipboard
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.

  • SwipeSelect widget + SwipeSelectItem + SwipeSelectController
  • Activation: edge strip (start / end), long press, swipe across; combine several with ActivationWhen (always / selectionMode / idle)
  • Works with ListView, GridView, CustomScrollView slivers; 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, onChanged once per gesture
  • Data changes mid-gesture are remapped by key
  • SwipeSelectItem.builder rebuilds only rows whose selection changed
  • controller.selected is an unmodifiable view (no copying); controller.autoScrollDirection for highlighting the edge zone
  • Range bookkeeping is O(Δ) per step — long ranges (thousands of rows) stay cheap
0
likes
0
points
161
downloads

Publisher

unverified uploader

Weekly Downloads

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 activation.

Repository (GitHub)
View/report issues

Topics

#selection #gesture #listview #gridview #multi-select

License

unknown (license)

Dependencies

flutter

More

Packages that depend on swipe_select