Splash screen while loading data

Database & APIs

Hi all,

I've got a page whose data comes from an API call on page load. This data is then processed and used by some elements in the page, and I want to show a loading page until the data is ready. Does anybody know the best approach here?

Thanks!

What have you tried so far?

I'm playing with the page's top level element visibility based on an isLoading flag in the page state. The flow is simple, on page load -> Set isLoading state to False -> API call -> on success -> Set isLoading state to True. This is currently not working as I can see an error showing before the page refreshes when the data is ready and everything looks fine.

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