-
I tried the same with the inbuilt Timer.Periodic(), but pausing and resuming was so erratic; I had a time limit of 10 seconds, but pausing and resuming multiple times causes the total recording time to go over that limit. When I replaced Timer.Periodic with PausableTimer, I see that it is fired only once. Here is the sample code:
This method will be called when the recording button is pressed. I know you're busy and haven't touched Dart in years, but can you help me understand what is that I'm doing wrong here and why is it being called only once? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @ykiran, I'm sorry but just from that code snippet is very hard to know what's going on but if what you want is a periodic timer, you need to restart the timer yourself after it is fired. Please have a look at the countdown example. |
Beta Was this translation helpful? Give feedback.
Hi @ykiran, I'm sorry but just from that code snippet is very hard to know what's going on but if what you want is a periodic timer, you need to restart the timer yourself after it is fired. Please have a look at the countdown example.