Comments (3)
same problem. Need to notify the user when my timer completes, even if in the background. Please clarify.
from circular_countdown_timer.
same problem.
from circular_countdown_timer.
Mine is also a workout app. I have an issue where it says
_AssertionError ('package:flutter/src/animation/animation_controller.dart': Failed assertion: line 493 pos 7: '_ticker != null': AnimationController.reverse() called after AnimationController.dispose()
AnimationController methods should not be used after calling dispose.)
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,
),
),
from circular_countdown_timer.
Related Issues (20)
- timer duration does not change when feeding duration using TextField. HOT 2
- If initialDuration is given, then timer doesn't starts. It hangs. HOT 3
- When the screen is locked, the timer counter is stopping a few minutes later. HOT 5
- AutoStart=false and initialDuration issue HOT 1
- strokeCap = StrokeCap.round does not reverse when isReverseAnimation = true. HOT 1
- Change attributes programmatically
- Customize text HOT 3
- Option to reset countdown timer HOT 3
- Have any way to localise the timer text? HOT 1
- [Honer Device] time run very fast and 180 minute take less than minute to end ?? HOT 2
- Initial value when isReversed: true shouldn't be 0 HOT 2
- Field _state has not been initialized... HOT 6
- State fields does not aligned with the state of the timer HOT 1
- Countdown restart doesnt work in background HOT 3
- New CountDownTextFormat added HOT 2
- Add text align in the constructor for Countdown Text
- Circular countdown timer restricted to 3.0.0 and does not support higher versions of flutter HOT 2
- animation dispose not proper HOT 1
- how ro restart the controler with new ( different from initial ) duration ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from circular_countdown_timer.