mjohnsullivan / nomnom

A Flutter app for seeing nearby restaurants
BSD 3-Clause "New" or "Revised" License
155 stars 45 forks source link

Exception thrown dismissed item is still part of the tree #4

Open AnirudhaAgashe opened 6 years ago

AnirudhaAgashe commented 6 years ago

If some items are dismissed from the list especially 3rd 4th onward and if paint debug or performance overlay is toggled it throws the following exception:

A dismissed Dismissible widget is still part of the tree. Make sure to implement the onDismissed handler and to immediately remove the Dismissible widget from the application once that handler has fired.

I was able to get it to work by removing place item that was dismissed from the list and setting the resultant list in the state

cahyowhy commented 6 years ago

same here

Karlheinzniebuhr commented 5 years ago

Same exact issue, I've tried a workaround using ObjectKey instead of Key(), and that solves the issue in so far as that the exception only shows up for 1 second now. But it's still showing up and I don't get why.