I am trying to build (rebuild) my app using cloud variables for practice. It’s a really basic app, with functions like add items to a list, remove items from the list and edit items in the list. So far it works fine, but now I am at the step where to remove an item. The list I am using for view my items is an DVL.
The issue is how to remove an specific item in the list in Firebase.
I would need some index for that I guess and I have trying a few things to get that out but now I think I would need some help.
Here is my Firebase list:
here is my code for “swipe-delete”:
The idea with this code was to,
- get the value from the row I am at
- count through my list until I can find any item there which match that value
- remove that value from my list and view the result in a label just for testing.
(I thought I would try this with local list first before going to cloud).
Any help is really appreciated. Thanks!