API Call Fails on PageLoad

Database & APIs

Basically im trying to fetch some data from my API but it doesn't work unless i touch the page, like i need to just click/touch anything on the page for it to send the request/fetch the data and display it, i made a default variable result that is null, so it shows null until i touch the screen. The bigger issue is, a page that requires the data without me touching anything, won't show the data and ill have an error.

What have you tried so far?

i tried changing the way i send the requests, i tried searching but nothing worked for me

Did you check FlutterFlow's Documentation for this topic?
Yes
2
10 replies