appinioGmbH / flutter_packages

Dart and Flutter plugins/packages used and maintained by @appinioGmbH
187 stars 214 forks source link

[Appinio Swiper] SingleChildScrollView position doesn't reset when swiping cards. #54

Closed heltonoliveirasuzuki closed 1 year ago

heltonoliveirasuzuki commented 1 year ago

Hi,

I'm currently using Appinio swiper with SingleChildScrollView in every card. So if I scroll to the end of a card the scroll position stays unchanged as I swipe to the next. Is there a way to reset the scroll position reset every time I swipe?

PS: Every object that is displayed in each card has its own key but Appinio doesn't seem to recognize it automatically.

Screenshot 2023-01-10 at 10 34 12 PM

I'd greatly appreciate if anyone knows how to fix this. Thank you in advance!

khanmujeeb687 commented 1 year ago

Hey @altanarata , Could you please add a key to the root component of your card item and try again? I tried the same and it worked for me.

Screenshot 2023-03-09 at 08 46 57