[Tutorial] API group base url variable (workaround)

For a long time I have wanted flutterflow to support the use of variables for the API GROUP Base Url. There have been several github issues and many requests for this feature, but flutterflow's stated that this is not a bug and they have no plans to fix it. For this reason I searched and found a workaround.

1. create an AppState in which you save your base url. I create it as apiBaseUrl for the sake of example.

2. simply reference it in the "API BASE URL" input of the Api Group as follows: ${FFAppState().apiBaseUrl}

3. Thats all. Your project will be compiled to use FFAppState().apiBaseUrl.

11
13 replies