Reputation: 1090
I want to build a feed similar to Twitter
in Flutter
Looking at Will Luce's answer here, I understood that we are expected to change the Key
of the ListView
, for the ScrollController
to not retain the original list's offset, and the ListView
to retain the screen position of the focused items (I guess using the items' Key
s).
But I want to implement this with AnimatedList
since I need support for animations as well. But I can't animate items if the list view's Key
- GlobalKey<AnimatedListState>
changes. Is there any other way?
Upvotes: 1
Views: 169