I also needed a ListView
that could combine all of these functionalities and because I couldn't find one I decided to create one by myself which is called implicitly_animated_reorderable_list
and can be found here:
https://pub.dev/packages/implicitly_animated_reorderable_list
The package contains two ListViews
: ImplicitlyAnimatedList
which is based on AnimatedList
and uses a diff algorithm (MyersDiff
) to calculate the changes between two lists and automatically (or "implicitly") animates between them for. So you don't have two call insertItem
or removeItem
on the AnimatedListState
manually anymore. Then theres ImplicitlyAnimatedReorderableList
which extends this functionality and adds support to reorder its items.
For examples on how to use them please refer to the readme and the example application in the repository as this would be to long for a single answer.
Here is an example what it looks like (I had to compress it a bit as the max file size is 2mb):
Note that this package is still very young and I developed it in my spare time which is to say that it should not be considered production ready (yet).