positioned_scroll_observer 2.2.2 copy "positioned_scroll_observer: ^2.2.2" to clipboard
positioned_scroll_observer: ^2.2.2 copied to clipboard

An elegant scroll observer that support most scroll views could jump/animateToIndex without breaking current widgets.

2.2.2 #

  • fix lint errors

2.2.1 #

  1. rename OnstageStrategy to VisibilityStrategy
  2. introduce getVisibleItems to indicate which items are visible in the viewport
  3. README update

2.2.0 #

  1. support check the visible ratio of the observed RenderObject in a viewport
  2. support aligning the observed RenderObject when showing it in the viewport.
  3. add the GroupList example to show the usage of visibleRatioInViewport.

2.1.1 #

  • deprecate RetainableScrollController, and introduce PositionRetainedScrollPhysics to achieve same goals.
  • See details: pull request

2.1.0 #

  • [new feature]: support RetainableScrollController to keep scroll offset when inserting a new item into the top of the ListView.

  • See details: pull request

2.0.1 #

2.0.0 (break change) #

See PR details about the below changes.

  • support SingleChildScrollView and ListWheelScrollView
  • remove PositionedScrollController
  • break changes of the design for supporting SliverScrollObserver and BoxScrollObserver.

1.0.2 #

  • fix: not animating if item has been visible. Issue #1

1.0.1 (2023-03-13) #

  • improve documentation
  • fix: determine if the given index is visible when [SliverAppBar] is overlapped with other slivers.

1.0.0 (2023-03-13) #

  • init release
17
likes
130
pub points
83%
popularity

Publisher

verified publishersimonwang.dev

An elegant scroll observer that support most scroll views could jump/animateToIndex without breaking current widgets.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on positioned_scroll_observer