Dealing with Collection and (subcollection with Array/Map) in flutterflow

Database & APIs

I have a list of stores(name, promotions etc) and i want to display(eg name, promotion) to the children of a listview but I can't get access to the field names of the stores.

  1. This is the structure of the firestore database:

  2. Custom Data types in Flutterflow:

  3. Collection schema to map the firestore collection in FF.

    Is there anyhting wrong here? if not then let's proceed to how I did the implementation

What have you tried so far?

Now in the page where I want to utilize the collection, I am struggling getting the field names of the subcollection.

  1. Setting up the listview:

  2. Here is the problem, to set individual field such as name or promotion to the child widget.

  3. What am I missing out here? I selected the pointdevente (List<store>) which is the collection i created previously but to get the items is the problem.

  4. The available options display premitive list function but I actually wanted to get the item fields so that i can set it to the text widget.

Did you check FlutterFlow's Documentation for this topic?
Yes
1
1 reply