EdsonBueno / infinite_scroll_pagination

Flutter package to help you lazily load and display pages of items as the user scrolls down your screen.
https://pub.dev/packages/infinite_scroll_pagination
MIT License
623 stars 210 forks source link

newPageProgressIndicatorBuilder with animation rebuilds the entire list - but it's very laggy #217

Open alexismoret opened 2 years ago

alexismoret commented 2 years ago

Hello,

I setted the animateTransitions to true to make the firstPage loading with a fade transition, but each time a new page is added, it's the entire list that is re-build, not only the widget I setted in the newPageProgressIndicatorBuilder, the problem is that adding new page is very slow and laggy with animations because it rebuild the entire list internally with sliverAnimatedSwitcher, but it's not laggy when animateTransitions is false

How can I set the animateTransitions only at firstPageProgressIndicatorBuilder but not at newPageProgressIndicatorBuilder ?

Is it normal that the entire list is animated only for add the newPageProgressIndicatorBuilder at the bottom of the list ?

Thanks !