Skip to main content

flutter_smooth_wheel_scroll 0.1.4 copy "flutter_smooth_wheel_scroll: ^0.1.4" to clipboard
flutter_smooth_wheel_scroll: ^0.1.4 copied to clipboard

Smooth, adjustable mouse wheel scrolling for Flutter desktop: scale the wheel distance app-wide and animate it per scroll view with a spring, curve or lerp.

0.1.4 #

  • Fix: a layout correction during a wheel motion is no longer undone on the next frame. When a scroll view corrects its offset with ScrollPosition.correctBy — for example to keep what is in view in place as content above it changes size — the motion's position and target move with it, and the remaining wheel distance carries on. When the content shrinks so that the target is past the end, the motion now eases into the new end instead of stopping there abruptly.
  • Fix: a wheel motion keeps to the scroll view's current extents after the view replaces its scroll position mid-motion, for example on a physics change. It read the extents of the old position, so with bouncing physics it could run past a new, shorter end and bounce back.

0.1.3 #

  • Fix: on the web, trackpad scrolling is no longer animated by SmoothScrollController. Flutter web sends it as a PointerScrollEvent of kind PointerDeviceKind.trackpad, and every small delta retargeted the wheel motion. Only mouse wheel input animates now, as on desktop; other input scrolls as with ScrollController and stops a running motion. In Firefox, which reports trackpads as a mouse, trackpad scrolling still animates.
  • The example has a web target (flutter run -d chrome).

0.1.2 #

  • Fix: in nested scroll views, wheel input that arrives while the inner view's motion is already heading for its end now scrolls the outer view, as with ScrollController. It was dropped until the motion settled.

0.1.1 #

  • Lower the minimum Flutter version to 3.32.0 and Dart to 3.8.0, from 3.41.0 and 3.11.5. No API or behavior change.

0.1.0 #

Initial release.

  • SmoothScrollController: animates mouse wheel scrolling per scroll view. Wheel input during a motion adds to the previous target, scrolling never passes the list ends, and items stay tappable while a motion settles.
  • WheelMotion: how the controller moves.
    • WheelMotion.spring (default: 400 ms, no bounce) keeps its velocity when the target moves.
    • WheelMotion.curve (default: 400 ms, Curves.easeOutCubic) plays any Curve.
    • WheelMotion.lerp (default: 60 ms time constant) eases toward the target.
  • SmoothWheelBinding and SmoothWheelBindingMixin: scale mouse wheel distance app-wide, adjustable at runtime.
  • scaleWheelEvent: the event transform behind the binding.
1
likes
0
points
1.18k
downloads

Publisher

verified publisherkihyun1998.com

Weekly Downloads

Smooth, adjustable mouse wheel scrolling for Flutter desktop: scale the wheel distance app-wide and animate it per scroll view with a spring, curve or lerp.

Repository (GitHub)
View/report issues

Topics

#scroll #mouse #desktop #animation #windows

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_smooth_wheel_scroll