Skip to content

Replacing the TabController, disposing the old one, fails #32428

@HansMuller

Description

@HansMuller

Pressing the "Change TabController length" button in this app demonstrates the problem: https://gist.github.com/HansMuller/dd9745558b991f740a9f4f31ddf10923

It happens because the didUpdateWidget methods in TabBar and TabBarView tried to remove their listeners from the old disposed controller.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: crashStack traces logged to the consolef: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions