Hi everyone
i have a question.
What I'm trying to do:
I'm building a self-service kiosk app where users can add items to their cart. If the item already exists in the cart, only the quantity should increase instead of adding a duplicate.
How I'm doing it in FlutterFlow:
Filter List โ I filter the App State List (cart) to find an item where
name == newItem.name
.Item at Index โ First โ I get the first item from the filtered list and update its quantity.
Problem:
โก๏ธ Instead of updating the first found item of the filtered list, it always updates the quantity of the second item in the app state list.
Any help would be greatly appreciated.