Closed DieGlueckswurst closed 2 years ago
Hmm, I think that you'll need to add a key to your slideIt widget, so that Flutter will know that it's not the same instance when you remove an item. By the way, why do you need a SlideTransition widget above the Slidable?
@DieGlueckswurst I think this can help you https://github.com/flutter/flutter/issues/58917
So what I understood from this is that, ListView Builder is only good if you have a very large number of items that do not require reordering?
@letsar adding a key fixed the issue. Thanks :)
I am using Slidable inside a ListView so I can delete items. The problem is that if I remove an item from the list, the new item has its slidable open. That is obviously not the desired behavior. Here is a Screenvideo for a better understanding.
My list is an AnimatedList:
And for here is my Slidable:
The AnimatedList makes it a bit more tricky so let me know if you need any more info! How can I fix this?