Skip to content

ReorderableListView requires child keys to be identical across builds #41334

@krisgiesing

Description

@krisgiesing

Internally ReorderableListView creates a GlobalObjectKey per child, where that key's value is the child's key.

GlobalObjectKey uses the identical compare function to determine equality. This means that if child keys are regenerated on each build pass, the ReorderableListView subtree will rebuild, even if the keys compare equal to the previous pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions