Skip to content

scrollController.dispose was called twice #362

@seoyongl

Description

@seoyongl

I encountered an error when calling chatController.dispose as the example code.

Error Message:
A ScrollController was used after being disposed. Once you have called dispose() on a ScrollController, it can no longer be used

`
void dispose() {

// ChatController should be disposed to avoid memory leaks

_chatController.dispose();         <-- here

super.dispose();

}
`

Because the ChatController and ChatListWidget call scrollController.dispose() twice time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions