GridView not rendering contents when documents contain complex nested data

I have a GridView in Flutter that displays data from Firestore. Each document contains a map array field with nested question/response objects.

When I try to display basic fields like title and description in the GridView, it fails to render when this nested map array exists. If I remove the array, it works fine.

It seems the GridView builder may not handle these complex nested maps well.

What is the best way to handle rendering the parent fields in a GridView while still keeping the nested map structure in the documents? Should I convert the maps to a model class first or flatten the data?

Any help or examples of dealing with nested data in FlutterFlow GridViews appreciated!"

The key points are:

  • GridView working with simple data but not complex nested maps

  • Still want to display basic top-level fields only

  • Suspect nested structure is causing issues

    Thanks all, fairly new to this world so appreciate any thoughts/best practice.

2
1 reply