Local Run: How to add "--web-port=" to the local flutter run

Troubleshooting

Is it possible to set dart flutter run port number for flutterflow's local run?

(I am using Flutterflow for Windows for development).

The problem is that every time I run my local application, I need to update my production API's 'allowed localhost port' so that I can build my app against my server with api data. I don't want to allow ALL localhost connections.

I want to set the port number for all of Flutterflow's 'flutter runs'. I can achieve this when downloading the code and running in Android Studio, (e.g. flutter run --web-port=38749), but then of course I need to download the code after every change to hot reload the run. Or am I missing something here as well? Is there a way to run the application manually in Android Studio, and have changed in Flutterflow Windows Desktop update the code I am running?

Let me know if this is something I can configure somewhere.

What have you tried so far?

Checked in Flutterflow docs, and web search of how to set this up globally for all flutter run's, but doesn't seem possible from outside of Flutterflow.

Did you check FlutterFlow's Documentation for this topic?
Yes
6
1 reply