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

only one card flipped at a time? #55

Open
NymusGraphics opened this issue Oct 25, 2021 · 1 comment
Open

only one card flipped at a time? #55

NymusGraphics opened this issue Oct 25, 2021 · 1 comment

Comments

@NymusGraphics
Copy link

Hey :)
Is there an easy method so only one card is flipped at a time or would I have to add the FlipCardController as controller on all of them and somehow trigger a flipback on the card showing the backside?
Is there a way to assign uid's to the flipcards and request the state and change it by the uid? E. g. useful when out of sight in a ListView.

@HannesGitH
Copy link

So when flipping a new card the old one should flip back?

You should have a controller per flip card.
And somewhere in your parent store which controller was the latest that flipd a card. When a new one flips make the latest controller toggle as well and overwrite latest with the new controller that just triggered.

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