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

Bad state: No element & AnimationController dispose issue #199

Open
jeanpierreaigbede opened this issue Aug 14, 2024 · 0 comments
Open

Bad state: No element & AnimationController dispose issue #199

jeanpierreaigbede opened this issue Aug 14, 2024 · 0 comments

Comments

@jeanpierreaigbede
Copy link

jeanpierreaigbede commented Aug 14, 2024

I'm experiencing a Bad state: No element error and issues related to calling AnimationController methods after it has been disposed. The error occurs when updating the callback in the StoryView. Here is the stack trace:
Capture d’écran du 2024-08-14 13-34-56

This occurs when making updates in the onStoryShow callback, resulting in an animation issue. Specifically, the problem arises when AnimationController methods are called after the controller has been disposed.
My Code here :
Capture d’écran du 2024-08-14 13-37-15

void updateStoryIndex(WidgetRef ref,int newIndex) {
ref.read(storyIndexState.notifier).update((state) => newIndex);
}
Please help !

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

1 participant