How can I dynamically fetch list of reference documents

Widgets & Design

I have two collections Plans and Meals. The Meal collection consist of data such as name, description, images as list, thumbnail etc.

Meals Collection:


Plans Collection: The Plans collection consist of chef_id, price, meals as a list of meals reference ids.



I tried like this... which print list of plans but not sure how I can print list of images which is coming from meals[references ids]


PlansListView:


Carousel:


Image path:



How can I create a page, where I want to display all plans as a card list and each card it should show a carousel images that is nothing but each meal's thumbnail which should be queried by meals[reference ids]. How to do that?

Little Urgent! Thanks for your help.

What have you tried so far?

I have two collections Plans and Meals. The Meal collection consist of data such as name, description, images as list, thumbnail etc.

Meals Collection:


Plans Collection: The Plans collection consist of chef_id, price, meals as a list of meals reference ids.



I tried like this... which print list of plans but not sure how I can print list of images which is coming from meals[references ids]


PlansListView:


Carousel:


Image path:



How can I create a page, where I want to display all plans as a card list and each card it should show a carousel images that is nothing but each meal's thumbnail which should be queried by meals[reference ids]. How to do that?

Little Urgent! Thanks for your help.

Did you check FlutterFlow's Documentation for this topic?
Yes
2
3 replies