-
Notifications
You must be signed in to change notification settings - Fork 25
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
The UI does not change after the second word is loaded #96
Comments
I don't fully understand what you are trying to achieve. It seems that you want to automatically switch to the second character after the first one finishes animating. But you also mention the user drawing something, so maybe you are talking about quiz mode? If you could provide a minimal example that reproduces your issue, I might be able to help. You can insert |
You understand it correctly. I'm sorry that I didn't describe it clearly enough and confused you. What I can confirm is that the second character executes _loadStrokeOrder and calls startAnimation to play the animation, but the content in the 9-grid remains at the previous character. I don't know how to update the content of the grid. The following code is almost the same as the demo.
|
That function doesn't get executed when you want your program to switch to the second character, right? If you add a You need to somehow trigger a rebuild of the widget when you have loaded the stroke order. The example code uses a |
This function (buildStrokeOrderAnimation) should be executed. |
Thank you for helping me analyze the problem. I solved this problem. It was my code problem. I forgot to assign the value of |
In the figure, the animation of the first character is played and the user finishes drawing. When the second character is loaded using _loadStrokeOrder again, the character in the nine-square grid does not change to the second character (the same logic as the first character). This may not be a bug. How can I switch to the second word normally? Most of the code I use comes from the demo code you provided.
The text was updated successfully, but these errors were encountered: