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

Card disappearing during swiping #38

Open
PetrKubes97 opened this issue Jul 3, 2024 · 0 comments
Open

Card disappearing during swiping #38

PetrKubes97 opened this issue Jul 3, 2024 · 0 comments

Comments

@PetrKubes97
Copy link

I've found a bug that occurs when you change cards in the match engine, sometime the front card would not render.

The fix:

in swipe_cards build method:

DraggableCard(
            key: ValueKey(widget.matchEngine.currentItem!.content), // Add a key --> you'll also need to add the key param to the draggable card widget

I won't do a PR because I have a lot of custom changes in my fork, but this could save someone a few hours of debugging.

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

1 participant