Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
acampuzanoo opened this issue Mar 30, 2022 · 1 comment
Open

Comments

@acampuzanoo
Copy link

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.

Screen.Recording.2022-03-30.at.6.26.23.PM.mov
@d0rianb
Copy link

d0rianb commented Sep 4, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants