listview initially displays empty list

I have a screen in my app with a listview that gets info like this: Firestore BE query --> Custom Function --> Generate Children. The first time the page shows, the listview is empty. If I interact with a widget and the page rebuilds, it shows the correct info. I'm trying to have it show info without any interaction.

What I do now is to have an App State bool for firstLoad set to False. If that is False, wait 250ms and set it to True & Rebuild page. I've played around with this and found 250ms is good, 150ms works 50% of the time, etc. It seems kind of hacky but works. I would love to handle this better, but so far haven't found a good way to just update it once the data is ready. Any ideas how I can improve this?

Thanks!
Craig

3
5 replies