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

A AnimationQueueController was used after being disposed. #149

Open
proficientdesigners opened this issue Dec 6, 2024 · 3 comments · May be fixed by #170
Open

A AnimationQueueController was used after being disposed. #149

proficientdesigners opened this issue Dec 6, 2024 · 3 comments · May be fixed by #170

Comments

@proficientdesigners
Copy link

Hi again,

When i use the Carousel widget, i get this particular error.

Screenshot_1733459348

And here the code

image

I even tried disposing the controller in dispose method. Can't able to resolve this. Any suggestion please.!!

@sunarya-thito
Copy link
Owner

can you post the error stack trace please

@sunsetsonwheels
Copy link

I'm facing the same error, it seems to be related to calling the dispose method on the controller.

@KRTirtho
Copy link

Ok, @sunarya-thito how you're handling the controller case in Carousel isn't ideal. You're disposing the CarouselController inside Carousel (_CarouselState specifically). So, if state changes in parent, it gets disposed inside the child. But since parent's parent isn't updated, the CarouselController never gets recreated. Thus we have this Exception that says we're using a disposed ChangeNotifier which is the CarouselController is subclass of

@KRTirtho KRTirtho linked a pull request Jan 11, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

4 participants