Query collection: Alternatives when query does not fetch any results.

Actions & Logic
Resolved

Hello, I am a newbie to flutterflow and app development in general. I have a page where I am using a query collection to populate a couple of list views. The query can either return some data or return nothing. When the query returns nothing I want to show a message to the user. How can I do this most efficiently in flutterflow?

Details:

  1. Widget Tree: Two query collections that populate couple of list views on the basis of selected day of the calendar.

  2. The query collection logic

What have you tried so far?
  1. I have tried to check official documents but have found nothing helpful for my purpose.

  2. I have tried to think of a logic where the I would create a widget that shows the default image when nothing is loaded from the query. But I haven't fount any way to check if the query returns nothing. If I can found a method to do so then I can perhaps store this information in a variable and use it in my logic building.

Did you check FlutterFlow's Documentation for this topic?
No
1
2 replies