Skip to content

GlobalKey error when adding identical elements during removal animation #131

@huanghui1998hhh

Description

@huanghui1998hhh

When adding an element identical to another one during the removal animation process of that element, a GlobalKey error occurs.

Exception has occurred.
FlutterError (Multiple widgets used the same GlobalKey.
The key [_MotionBuilderItemGlobalKey _MotionBuilderItemGlobalKey#856d6] was used by multiple widgets. The parents of those widgets were:

  • Transform(dependencies: [Directionality], renderObject: RenderTransform#84827 relayoutBoundary=up10 NEEDS-PAINT)
  • RepaintBoundary(renderObject: RenderRepaintBoundary#187b1 relayoutBoundary=up4 NEEDS-PAINT)
    A GlobalKey can only be specified on one widget at a time in the widget tree.)

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