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
86 stars 22 forks source link

keeping the hand writing of user made #12

Closed sqllyw closed 4 years ago

sqllyw commented 4 years ago

Hi, This is a nice to have feature, can Stroke-order-animator keep the correct paths of a user actually draw? this might be used to show to the user his actual hand writing. thanks

Mr-Pepe commented 4 years ago

Only the correct paths or would you also want the incorrect ones? Should the data be passed on quiz completion or on every correct/wrong stroke? I guess I would just add it to the quiz summary, so it would be passed to the onQuizCompleteCallback, but you can get the summary from the controller any time.

sqllyw commented 4 years ago

only the correct paths, there could be two use cases: 1) on quiz summary, the actual writing can be shown together with the outline to see how close the practice is. 2) if the correct path can be accessed while in quizzing, then user can see every real stroke he makes.

Mr-Pepe commented 4 years ago

I added an option that can be set with setShowUserStroke that keeps the correct strokes on screen. The strokes also stay visible after the quiz ends until the quiz starts again or the character gets reset. I added a button in the example app to showcase the behaviour.

Let me know what you think :)

sqllyw commented 4 years ago

will check this out and get back to you soon

sqllyw commented 4 years ago

works as expected, thanks.