h65wang/flutter-animated-counter

Pause / get current value

Closed this issue · 1 comments

Hello!

I have an intention to make a scoreboard with this package. I am curious about whether is it possible to pause and get the current value.

Let's say I set the duration to 40 seconds and, the user clicked the pause button after 20 seconds. I would like to stop the animation and get the last rendered value. I looked for the controller but couldn't find it.

Thanks in advance!

You should store timer data in a variable separate from UI.