Skip to content
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

Problem with ticker dispose #4

Closed
WGFizban opened this issue Jan 5, 2023 · 1 comment
Closed

Problem with ticker dispose #4

WGFizban opened this issue Jan 5, 2023 · 1 comment

Comments

@WGFizban
Copy link
Contributor

WGFizban commented Jan 5, 2023

I use add_to_cart_animation in my project. When I go back from screen whree i used it to my second screen after correct dispose my screen I see error in debug console:

Exception has occurred.
FlutterError (CartIconKey#36ff4(ticker active but muted) was disposed with an active Ticker.
CartIconKey created a Ticker via its SingleTickerProviderStateMixin, but at the time dispose() was called on the mixin, that Ticker was still active. The Ticker must be disposed before calling super.dispose().
Tickers used by AnimationControllers should be disposed by calling dispose() on the AnimationController itself. Otherwise, the ticker will leak.
The offending ticker was:
Ticker(created by CartIconKey#36ff4)

version: 2.0.1

Fix for that is easy. Please change order this two function. I create special PR for that isuue.
image

@omerbyrk
Copy link
Owner

omerbyrk commented Jan 7, 2023

Thank you.

@omerbyrk omerbyrk closed this as completed Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants