MuhammadUsamaSiddiqui/circular_countdown_timer

Option to reset countdown timer

Closed this issue · 3 comments

How about a CountDownController method to reset the countdown timer?

I am also looking for the same, Right now we have an option to restart. However, I have a situation where at the end of the level 1, I need to just reset the timer to the duration for Level 2. It will restart only after the user starts Level 2. However I am not able to make that happen with restart. As it restarts the timer, even before the user has started the new level.

Is this still not possible?
Do you have a workaround?

I have added a reset method in CountDownController. You can use it like this:

CountDownController _controller = CountDownController();
_controller.reset();