Development Environments
Development Environments in FlutterFlow Studio allow you to set up multiple environments for your apps, such as Development, Staging, and Production. For each environment, you can create environment-specific values and databases. This allows you to easily point to different backends depending on where you are in your development lifecycle.
Create and Switch Development Environments
You can create and switch environments in the Dev Environments page in App Settings. You can always see the current environment that is selected by looking in the top left hand corner of the project.
The selected environment is used to generate the proper app code when you run, test, deploy or export your app. The only things that change between environment are the Firebase Project or variables that are tied to Environment Values
Environment Values
Environment Values can be used to dynamically change parts of your app’s code based on the environment that is being used.
For example, in an e-commerce app, you might define an apiUrl Environment Value that points to different API URLs for Development, Staging, and Production. This allows you to test new features without affecting the live production environment, where real customer orders are processed.
Use Environment Value
Let’s see an example of creating and using apiUrl:
Private Environment Values
You can mark environment values as private when they contain sensitive information that should not be exposed in the client-side code.
Currently, the only way to use a private environment value is as a variable in a private API call. Since private API calls are routed through a Cloud Function, the variable value remains hidden from any client-side requests made by the app.
Configuring Firebase or Supabase for each Environment
A single FlutterFlow Studio project can have multiple environments, each mapped to its own Firebase or Supabase project. This ensures that environments like Development, Staging, and Production remain independent, giving you better control over your app’s data and behavior throughout different stages of development.

You must complete the Firebase or Supabase setup for an environment before you can test your app using that environment. However, this doesn’t stop you from continuing to run and test your app in other environments. Just switch back to Production, and you can keep testing while finishing the setup for the new environment.
Configuring Firebase
If your project uses Firebase, you’ll need to create a separate Firebase project in the Firebase Console for each environment. Then, you can change the selected environment in the Firebase settings page (see below), and follow the steps to manually configure the Firebase project for each one.

Additionally, you must manually set up Firestore rules and collections for the new environment.
Configuring Supabase
If your project uses Supabase, you’ll need to set up a new Supabase project for each environment.
Create environment-specific values like SupabaseAPIURL and SupabaseAnonKey, and then configure the Supabase properties to point to these newly created values. Below is an example of how it would look like.
FAQ
How can you push code from one environment to another?
It’s important to note that the Development Environments feature in FlutterFlow Studio is primarily designed to configure different backends for testing
If you are building new features, you should consider using Branching. You can develop and test new features on a new branch by selecting a development environment. Once tested, you can merge the branch into main and switch to the Production Environment to go live.
Are you using Flutter flavors under the hood?
No, FlutterFlow Studio does not use Flutter flavors. Instead, it generates code based on the environment selected in FlutterFlow Studio. The environment-specific code is generated and applied for the following actions:
- Test / Run mode sessions
- Local Run
- Code export
- Deployment
How to deploy apps for different environments?
You can configure deployment settings for each environment using the dropdown interface on the deployment page. For mobile, set a new package name, and for web, set a new site URL. Once done, deploy your app as usual. See how to do it in detail here.
Last updated on