AnupKumarPanwar / swipe_cards

Tinder like swipe cards for flutter.
https://pub.dev/packages/swipe_cards
BSD 3-Clause "New" or "Revised" License
52 stars 47 forks source link

Back card does not preload until the front card is fully swiped #13

Open acampuzanoo opened 2 years ago

acampuzanoo commented 2 years ago

Whenever a card is being dragged, the back card will still show the same content of the front card.

The content of the back card is only loaded when the front card is completely swiped; in the meantime it will still show the swiped card content.

Attached you can find evidence of this behavior. I followed the example from pub.dev to create the stack as well.

https://user-images.githubusercontent.com/96595808/160946999-5b06cbcb-f6dc-4efb-95aa-2e1d2f05af59.mov

d0rianb commented 2 years ago

I had a similar issue because I accessed the card data with matchEngine.currentItem instead of saving my item list in the state of the widget and accessing the data with the index (swipeItems[index]) in the itemBuilder() method.