flutter_pan_select 1.0.0 copy "flutter_pan_select: ^1.0.0" to clipboard
flutter_pan_select: ^1.0.0 copied to clipboard

Multi-select with drag-to-select (pan) gesture for grids and lists. Lightweight, themeable selection controller with marquee selection and auto-scroll support.

1.0.0 #

Initial release.

  • SliverPannable<T>: the core pan-to-select sliver. Layout-agnostic, with edge auto-scroll that keeps extending the selection while the pointer holds still at the viewport edge.
  • SliverPannableGrid<T>.builder / SliverPannableList<T>.separated: convenience wrappers over the native sliver layouts. Each item is wrapped with a default selection checkbox (SelectionItemOverlay for grids, SelectionLeftCheckbox for lists); pass checkboxBuilder to customise the decoration, or (_, _, child) => child to disable the wrapping.
  • SelectionController<T>: selection state controller extending ChangeNotifier. Notifies only when the selection actually changes.
  • SelectionScope<T>: an optional InheritedWidget that hosts a controller for a widget subtree.
  • SelectionButton<T>: a one-tap toggle for selection mode (startSelection / endSelection).
  • All widgets support both an explicit controller: parameter (similar to the TabController pattern) and a SelectionScope.of<T> fallback.
  • Vertical scrolling only.
2
likes
160
points
36
downloads

Documentation

API reference

Publisher

verified publishersstingo.com

Weekly Downloads

Multi-select with drag-to-select (pan) gesture for grids and lists. Lightweight, themeable selection controller with marquee selection and auto-scroll support.

Repository (GitHub)
View/report issues

Topics

#selection #drag #gesture #grid #list

License

MIT (license)

Dependencies

flutter, sliver_tools

More

Packages that depend on flutter_pan_select