Pass a appstate variable in api call header

Database & APIs

Hi.

I'm having a problem in my Flutterflow app.

I need to pass a appstate value into my group api call header.
The API that i'm using need to receive the app version on it.
I already have a custom action to get the app versio, which runs on app start.
So I get this value and store it in a app state.
I don't want to pass this value as a group variable, because this will require me to pass the value on every api call, and I already have these apis being used on the app, it will be laborious to put this new property on every call in the app.

So is there a way to pass the app state directly in the header? already have tried things like FFAppState().variableName and didn't worked.

What have you tried so far?

Everything

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