Giter Site home page Giter Site logo

Comments (7)

KimAloy avatar KimAloy commented on September 3, 2024

Hi, I'm also getting the error when I use the HeartBeat on the second page and press the back button.
E/flutter ( 3021): [ERROR:flutter/shell/common/shell.cc(93)] Dart Unhandled Exception: This ticker was canceled: Ticker(created by _HeartBeatState#56128)

from im_animations.

imujtaba8488 avatar imujtaba8488 commented on September 3, 2024

@rohitsangwan01 @KimAloy sorry for getting back to you later on this ... let me fix this and get back to your ASAP

from im_animations.

KimAloy avatar KimAloy commented on September 3, 2024

@imujtaba8488 @rohitsangwan01 The error seems to be thrown by _controller.repeat().orCancel;

I replaced it with code below and it doesn't throw any errors

@override
  void didUpdateWidget(ABeats oldWidget) {
    _controller.reset();
    // _controller.repeat().orCancel;          <---- replaced this with code below
    _controller.forward();
    _controller.repeat();
    super.didUpdateWidget(oldWidget);
  }

and this

  // Since a heartbeat, so repeats infinitely.
    // _controller.repeat().orCancel;      <---- replaced this with code below
    _controller.forward();
    _controller.repeat();

from im_animations.

tegarkurniawan avatar tegarkurniawan commented on September 3, 2024

same error

from im_animations.

KimAloy avatar KimAloy commented on September 3, 2024

same error

Click to open the method you want to use (Ctrl+Click in android studio).

Replace every _controller.repeat().orCancel; with these two lines of code:
_controller.forward(); _controller.repeat();

from im_animations.

imujtaba8488 avatar imujtaba8488 commented on September 3, 2024

@KimAloy please file a PR so that others' may also benefit

from im_animations.

fraca98 avatar fraca98 commented on September 3, 2024

same error

Click to open the method you want to use (Ctrl+Click in android studio).

Replace every _controller.repeat().orCancel; with these two lines of code: _controller.forward(); _controller.repeat();

I implemented that, but i still get the same error on the HeartBeat animation sometimes (that's why i closed my pull request)

from im_animations.

Related Issues (3)

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.