fluttercandies / loading_more_list

A loading more list which supports ListView,GridView,WaterfallFlow and Slivers.
MIT License
361 stars 45 forks source link

AnimatedList support #17

Closed wyzard closed 4 years ago

wyzard commented 4 years ago

Thank you for this awesome development. Is it possible to apply your solution to AnimatedList?

I have to development a list with animations (if it possible with your lib), but If I understand correctly, right now I cannot achieve this. Is it correct?

Thank you for your answer.

zmtzawqlp commented 4 years ago

AnimatedList is also a CustomScrollView or SliverAnimatedList.

https://github.com/flutter/flutter/blob/fcb40a05bbc5b4ba08e5360d074ac8407f4c0463/packages/flutter/lib/src/widgets/animated_list.dart#L992

i think you can copy all of the code to local and relpace SliverList to LoadingMoreSliverList and CustomScrollView to LoadingMoreCustomScrollView , and public the parameters which you are used

wyzard commented 4 years ago

Thank you for your answer. I don't want to rewrite a framework class, because it may break the operation if Google update it. But thank you for the tip, if our customer want this behaviour I'll try that way temporarily.