Skip to content

Bad state: No element & AnimationController dispose issue #199

@jeanpierreaigbede

Description

@jeanpierreaigbede

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions