flutter_pan_select 1.0.0
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 (SelectionItemOverlayfor grids,SelectionLeftCheckboxfor lists); passcheckboxBuilderto customise the decoration, or(_, _, child) => childto disable the wrapping.SelectionController<T>: selection state controller extendingChangeNotifier. 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 theTabControllerpattern) and aSelectionScope.of<T>fallback. - Vertical scrolling only.