Skip to content

Commit 670ed1b

Browse files
authored
fix : invalid value for isResumed & isPaused when call pause() & resume()
1 parent 32eaa7b commit 670ed1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/circular_countdown_timer.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ class CountDownController {
334334
void pause() {
335335
_state._controller?.stop(canceled: false);
336336
isPaused = true;
337+
isResumed = false;
337338
}
338339

339340
/// This Method Resumes the Countdown Timer
@@ -344,6 +345,7 @@ class CountDownController {
344345
_state._controller?.forward(from: _state._controller!.value);
345346
}
346347
isResumed = true;
348+
isPaused = false;
347349
}
348350

349351
/// This Method Restarts the Countdown Timer,

0 commit comments

Comments
 (0)