scroll_drag_detector 1.0.0-dev.0 copy "scroll_drag_detector: ^1.0.0-dev.0" to clipboard
scroll_drag_detector: ^1.0.0-dev.0 copied to clipboard

A drag gesture detector that can deal with scroll views inside of it.

1.0.0-dev.0 #

Note: This release has breaking changes.

  • BREAKING FEAT: replace scrollableCanMoveBack and onlyDragWhenScrollWasAtTop with required up, down, left, and right physical-direction modes.
  • FEAT: add ScrollDragDetector.legacy to map the previous configuration for conventional, non-reversed scrollables. Reversed scrollables use the corrected physical-direction behavior.
  • FEAT: support scroll-first boundary takeover and same-gesture reversal on both axes, including reversed scrollables.

0.1.0+2 #

  • FIX: immediately start clearing overscroll when letting go.

0.1.0+1 #

  • FIX: dragging up from a snap point performes one frame of scroll before transitioning to dragging.

0.1.0 #

Note: This release has breaking changes.

  • BREAKING FEAT: callbacks now indicate if a scroll did, would have, or will occur.

    All callbacks in ScrollDragDetector besides down and cancel now pass an extra bool that

    • For drag update, whether the drag would have been a scroll gesture
    • For drag end, whether the drag will turn into a scroll gesture

    This allows consumers to better handle interactions between dragging and scrolling.

0.0.4 #

  • FIX: velocity scaling when overdragging with resistance.
  • FIX: secondary animation in cupertino sheet.
  • FEAT: sheets support snapping points now.

0.0.3 #

  • FEAT: add onlyDragWhenScrollWasAtTop parameter.

0.0.2+1 #

  • FIX: don't render overscroll indicators while we drag.
  • FIX: only pay attention to drags on the axis we care about.
  • FIX: only pay attention to relevant axes.

0.0.2 #

  • FEAT: stupid simple sheet and drag detector (#154).
10
likes
140
points
5.31k
downloads

Documentation

API reference

Publisher

verified publisherwhynotmake.it

Weekly Downloads

A drag gesture detector that can deal with scroll views inside of it.

Homepage
Repository (GitHub)
View/report issues

Topics

#animation #motion #physics #spring #curve

License

MIT (license)

Dependencies

flutter, meta

More

Packages that depend on scroll_drag_detector