How to set an app state variable on page load via a Firebase query?

Troubleshooting

On page load, I want to query a Firebase database in the first action (this part seems to work). Then in the second action, I want to take that query and use it to set an app state variable.

What I'm trying to do is get a unique list of categories from the larger database query. I hope this makes sense. It's like Dog->Breed. I would have many of the same breed, but I want a unique list where I have a button where you can click on the breed and see all the dogs.

Note, doing this in a dropdown list is easy and not a problem. But I am trying to do a grid view with buttons. This is where I keep running into problems as the Flutterflow instructions are only to do with drop downs or to do with "clicking a button" first. But I just need to show these categories on a page load.

What have you tried so far?

As mentioned above, I can get this to work with a dropdown. I want it to be grid view and buttons. Those don't seem to have the same options.

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