chill-chinese / stroke-order-animator

Stroke order animations and quizzes for Chinese characters in Flutter.
https://chill-chinese.github.io/stroke-order-animator/
BSD 3-Clause "New" or "Revised" License
87 stars 24 forks source link

event after quiz? #6

Closed sqllyw closed 4 years ago

sqllyw commented 4 years ago

Hi, is there a way to know user has finished the quiz and how many mistakes? thanks

Mr-Pepe commented 4 years ago

Not yet, but I can look into it in the next couple of days.

Can you explain in a bit more detail what you would like to have?

At the moment, I only count mistakes for the current stroke to know when to show a hint. I could extend that to keep track of the mistakes for all strokes during the current quiz and make that property to public, so you can access it any time.

How would you like to be notified when the quiz finishes? Passing in a callback to the controller?

sqllyw commented 4 years ago

a callback will do, something onComplete with summary info

Mr-Pepe commented 4 years ago

Give it a try and let me know what you think

sqllyw commented 4 years ago

Thanks, will do

sqllyw commented 4 years ago

tested and works as expected, thanks.

Mr-Pepe commented 4 years ago

Great! Thanks for the feedback