scroll_velocity_listener 0.0.5 copy "scroll_velocity_listener: ^0.0.5" to clipboard
scroll_velocity_listener: ^0.0.5 copied to clipboard

outdated

A widget that wraps scroll views and outputs velocity

scroll_velocity_listener #

Wrapper widget for attaining velocity from a scroll view as the scroll changes

Usage #

Wrap the target scroll view with a ScrollVelocityListener widget and you will receive velocity updates via the onVelocity callback. The unit returned is pixels per millisecond

ScrollVelocityListener(
  onVelocity: (velocity) {
    // Velocity is in pixels per millisecond
  },
  child: ListView(
    children: [
      Container(),
      Container(),
      Container(),
      Container(),
    ],
  ),
);
2
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A widget that wraps scroll views and outputs velocity

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on scroll_velocity_listener