API Call URL with App State Variable

Database & APIs
Resolved

I have an API call that works, with the date I require to be converted to Hijri (Islamic Date) plugged to the end of the URL

https://api.aladhan.com/v1/gToH/10-10-2024

How do I now use a date I've stored in an app state "selectedDate" in place of the date above?

What have you tried so far?

Not the best, but I've seeked help from ChatGPT, and I've been going in rounds trying things suggested, but no go.

I think closest was, that I changed the URL to https://api.aladhan.com/v1/gToH/{gregorianDate}
and added variable gregorianDate of type String to the API call, and I am supposed to map this to the app state variable mentioned above, "selectedDate", but I see no way of doing that.

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