I’m working through the chapter 6’s adding Dismissible widget part.
I can swipe to delete and it works fine. But if I tap on the + button right after, the app stop at the following exception
A dismissed Dismissible widget is still part of the tree.
I copied the code of the grocery_list_screen.dart from the final solution to mine and tried again but came across the same error.
I’d appreciate any guidance on how to fix this. I’m running the app in Flutter 2.5.3.
Can you please double check if you included a
You could also try upgrading the package to see if that works!
Or share your repo and i’ll have a quick look!
child: const Icon(
Hi @jomoka, I upgraded the
provider package but no luck. I pushed my repo to my Github. Please check the below link.
You are missing the function call for
notifyListeners() in the
deleteItem function body.
@lauragales Oh! Thank you.