-
-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CountDown timer not working on the background state of App #48
Comments
same problem. Need to notify the user when my timer completes, even if in the background. Please clarify. |
same problem. |
Mine is also a workout app. I have an issue where it says
when I try to display this widget after it was hidden (another one was shown using a conditional). The error leads me to this line: void start() {
if (_isReverse != null && _state != null && _state?._controller != null) {
if (_isReverse!) {
_state?._controller?<PUTS CURSOR HERE>.reverse(
from: _initialDuration == 0
? 1
: 1 - (_initialDuration! / _duration!));
} else {
_state?._controller?.forward(
from: _initialDuration == 0 ? 0 : (_initialDuration! / _duration!));
}
isStarted = true;
isPaused = false;
isResumed = false;
isRestarted = false;
}
} and these are my args CircularCountDownTimer(
duration: currentSecond,
fillColor: Colors.transparent,
ringColor: Colors.transparent,
height: MediaQuery.of(context).size.height * 0.40,
width: 180,
autoStart: false,
isReverse: true,
controller: _countdownController,
onComplete: () async => await _onFinished(),
textStyle: TextStyle(
fontSize: 160,
color: resting ? Colors.grey : Colors.black,
),
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a workout app that plays different exercises and some beep and tts onChange condition. So whenever the app goes on background timer stop working even not restarted in the background. Kindly help me to solve this problem. Thank you
The text was updated successfully, but these errors were encountered: