okmanideep
okmanideep

Reputation: 1090

How to build a Twitter like feed in Flutter with support for Animations

I want to build a feed similar to Twitter in Flutter

Add newer tweets above the fold on pull to refresh

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' Keys).

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

Answers (0)

Related Questions