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

Correct dispose of flutter switch widget #6

Merged
merged 1 commit into from
Sep 20, 2020
Merged

Correct dispose of flutter switch widget #6

merged 1 commit into from
Sep 20, 2020

Conversation

douglasramos
Copy link
Contributor

Hi, first of all, thanks for publishing this package, it is awesome. In a project that I use it, I was getting an exception when I tried to force the widget to rebuilt. The exception was exception: disposed with an active ticker. The solution is to dispose the animation controller, so there you go.

Hi, first of all, thanks for publishing this package, it is awesome. In a project that I use it, I was getting an exception when I tried to force the widget to rebuilt. The exception was exception: disposed with an active ticker. The solution is to dispose the animation controller, so there you go.
@boringdeveloper boringdeveloper added the bug Something isn't working label Sep 20, 2020
@boringdeveloper boringdeveloper merged commit 8d5adc8 into boringdeveloper:master Sep 20, 2020
@boringdeveloper
Copy link
Owner

Hi @douglasramos , thank you. I will apply this fix for the latest version of the package.

1 similar comment
@boringdeveloper
Copy link
Owner

Hi @douglasramos , thank you. I will apply this fix for the latest version of the package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tickers used by AnimationControllers should be disposed by calling dispose()
2 participants