Skip to content

Example : A dismissed Slidable widget is still part of the tree. #23

@giorgio79

Description

@giorgio79

Hello,

Fixed the example so it works with the latest Flutter :)

I am noticing that the Slideable widget when dismissed emits a small error. Please see video. Any tips how to make this issue go away? :

dismissed.widget.still.part.of.the.tree.error.webm

(https://github.com/wwwdata/implicitly_animated_reorderable_list/assets/283347/ee9b58ed-46bf-42a1-92cd-abfbcbb67af7)

The recommended solution by Stackoverflow is to use UniqueKey instead of ValueKey https://stackoverflow.com/questions/55792521/how-to-fix-a-dismissed-dismissible-widget-is-still-part-of-the-tree-error-in

When switch to that, I am getting a small flicker in animation, as both Dismissible and AnimatedList is doing some animation.

double.animation.webm
======== Exception caught by widgets library =======================================================
The following assertion was thrown building SlidableDismissal(state: _SlidableDismissalState#c7a52(ticker inactive)):
A dismissed Slidable widget is still part of the tree.


Make sure to implement the onDismissed handle of the ActionPane and to immediately remove the Slidable widget from the application once that handler has fired.

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