my application involves a ListView, where the 47 food items listed are fetched from a Firebase database. Each item represents a product, and what I intend to do is allow the users to input a numerical value associated with each of these listed products. After the user inputs these values, they should be able to fill out any remaining text fields and hit a 'Submit' button, which would then store the updated product details back into the corresponding Firebase collection.
Each time the list is filled out by the user, the document should be stored, would really appreciate any advice on how I should go about setting up the database collection as there are 47 food items and there needs to be a count for each item in the collection. Thanks guys