FVM (Flutter Version Management) - An Easier Way To Maintain Flutter Versions
Maintain Flutter Versions like a Pro

Search for a command to run...
Maintain Flutter Versions like a Pro

Lessons from Code, Content, and Consistency

Reliability basics: Outbox pattern + why it matters

Introducing Kafka/Redpanda + move to event-driven workflow

Connect Orders โ Inventory (first working service-to-service flow)

Inventory service + gRPC + proto contracts


FVM (Flutter Version Management) is an open-source tool that makes it easy for you to keep track of your Flutter projects' versions, so you don't have to worry about it anymore!
FVM also helps with the need for consistent app builds by referencing the Flutter SDK version used on a per-project basis. It also allows you to have multiple Flutter versions installed to quickly validate and test upcoming Flutter releases with your apps without waiting for Flutter installation every time.
choco install fvm
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Wait a few seconds for the command to complete. If you don't see any errors, you are ready to use Chocolatey! Type choco or choco -? now, to verify.
You can also install FVM as a pub package using the below command.
dart pub global activate fvm
However, if you plan on using FVM to manage your global Flutter install the above approach is recommended by the author.
After the successful installation of FVM you are able to run the fvm command in the terminal, which gives the following result.


brew tap leoafarias/fvm
brew install fvm
fvm list and fvm installfvm list Lists all the installed Flutter SDK Versions.fvm list command for the first time and don't have a flutter version installed on your machine, you will see the below warning.
fvm install stable

fvm list again you will see the stable version there.
fvm releasesfvm releases

3.0.1.fvm globalfvm global stable

In order to resolve this, copy the second path, head over to Environmental variables, and replace the current flutter path with the copied one.
Now if you run the fvm list again you will see that the stable is set as global.

fvm install beta.
fvm list command to see if it's installed correctly
fvm global beta
fvm you will need to download the whole beta again. fvm usefvm use stable

stable, like fvm use 3.0.0.fvm

.gitignore file.gitignore file..fvm/flutter_sdk
settings.json file of VS Code. To do that add the following things inside your VS Code settings.json{
"dart.flutterSdkPath": ".fvm/flutter_sdk",
// Remove .fvm files from search
"search.exclude": {
"**/.fvm": true
},
// Remove from file watching
"files.watcherExclude": {
"**/.fvm": true
}
}
What this will do, is whenever you run the project, the project will use the fvms' flutter SDK instead of the globally installed flutter.
For Android studio configuration Follow this.
{
"flutterSdkVersion": "stable",
"flavors": {
"dev": "beta",
"staging": "2.0.3",
"production": "1.22.6"
}
}
beta , for staging we are using 2.0.3 and for production we are using 1.22.6.fvm use {version} --flavor {flavor_name}

Follow me one Twitter, LinkedIn, and Github for more updates.