Skip to main content

Project Flavors

You can have multiple Flutter SDK versions configured per project environment or release type. FVM follows the same convention of Flutter and calls this flavors.

It allows you to create the following configuration for your project.

{
"flutterSdkVersion": "stable",
"flavors": {
"dev": "beta",
"staging": "2.0.3",
"production": "1.22.6"
}
}

Pin flavor version#

To choose a Flutter SDK version for a specific flavor you just use the use command.

fvm use {version} --flavor {flavor_name}

This will pin version to flavor_name

Switch flavors#

Will get the version configured for the flavor and set as the project version.

fvm flavor {flavor_name}

View flavors#

To list all configured flavors:

fvm flavor

Learn more about Flutter flavors