Git Product home page Git Product logo

Comments (3)

TomasWard1 avatar TomasWard1 commented on September 28, 2024

same problem. Need to notify the user when my timer completes, even if in the background. Please clarify.

from circular_countdown_timer.

kasrakasaian avatar kasrakasaian commented on September 28, 2024

same problem.

from circular_countdown_timer.

emmggi avatar emmggi commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.