How to fix “A dismissed Dismissible widget is still part of the tree.” error in flutter

Probably, I’m late, but I think it will be helpful for others. Had the same problem and even setting

key: Key(itemId[index]),

didn’t work. However,

key: UniqueKey(),

worked perfectly for me

Leave a Comment