Scrollable widgets, which lets you easily animate its items list modifications(insert, remove, move, etc.).
At the moment, this package provides
Be careful using this package in production because there are still many untested cases.
Mainly, developed as a replacement for out-of-the-box animated scrollables:
AnimatedGrid(available from flutter version 3.7.0)
SliverAnimatedGrid(available from flutter version 3.7.0)
because of their numerous disadvantages:
Scroll offset jumps when an item is built atop(outside) of the current layout(Issue #74031):
Out-of-the-box animated scrollables have inconvinient API, developer is required to write a lot of code to make it work
There is a lot of cases when developer can forget/miss something to setup, and, as a result, lose a lot of time figuring out what's wrong(e.g. #63185)
SliverAnimatedGridare not available if you are using flutter version below 3.7.0
AnimatedPageView widget can be useful for you, as it does not have an out of the box analogue:
There are already implementations-replacements for each of the out-of-the-box animated scrollables mentioned above:
Also, you can extend
AnimatedScrollView, and create your own
implementation, using the API of this package.
animated_scroll_view to your
flutter pub add animated_scroll_view
dependencies: animated_scroll_view: ^<latest version>
flutter packages get
|✅||Simultaneously removing and inserting item when moving(#35618)|
|✅||Set default axis for
|⬜||Cover all code with tests|
|✅||Wrap ItemWidget in
|✅||Widgetbook with live demo examples|
|⬜||Removing previous page of
- Scrollable widgets, which lets you easily animate its items list modifications(insert, remove, move, etc.).