-
Notifications
You must be signed in to change notification settings - Fork 104
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
Continuous change of front and back cards #46
Comments
+1 yes i have the same problem, i don't know how to solve |
Can't you toggle the widget before loading the next card in the deck? |
For example, it didn't work out for me, I can only rotate the widget after showing the next card. Maybe there is a way to rotate the map backward without animation? Then the user would not see the answer to the next card, if with the animation he still sees the answer for half a second. |
If you toggle the widget, it would show the existing content briefly before the updated text code makes the change. That is precisely what I am doing. As mentioned in the code snippet I shared where the content is being changed |
Could you provide either screenshots or more details, I am having trouble understanding what the exact issue is, thanks. |
My use case is a deck of cards. The front being the Question card and the back being the Answer. On Tap of the Q card, it must toggle to show the A card. On the tap of the A card, the two card information should be changed and the Q card of the next card from the deck should be shown.
I am able to achieve this easily using your wonderful widget. Thanks!
However, when I update the contents of the Q and A cards, for an instance the user is able to see the Answer of the next card. I wish to avoid that.
Here is the relevant code
I tried using the
onFlipDone
as below. However, that too shows the old Question as it turns before updating before the userIn the second case, at least the updated answer is not seen by the User. However, when the card rotates back to the Q card, momentarily the user sees the existing (old) question and then it instantly updates to the new question.
As mentioned the second options works better for me but thought of posting it here to find out if there is a more elegant way to do it.
Thanks
The text was updated successfully, but these errors were encountered: