Flutter FVM — Boost your Flutter productivity by 100%
Flutter Version Management (FVM) is a CLI Tool, which allows you to manage versions of the Flutter SDK in different projects. It’s a very great tool that every Flutter Developer should be familiar with. That’s why I will teach you how to use FVM!
Why do I need FVM?
Okay, so let’s talk about why we even need FVM. Let’s say you have one project, which will be developed on top of the Flutter Stable channel. But you also have another project, which is based on the Dev channel, because you always want the newest features. Every time you switch between these projects, you have to re-download the Flutter SDK to use the corresponding channel. That’s a big mess. FVM allows us to manage multiple Flutter SDKs on our machine and switch easily between different channels.
Installation
Because FVM not only manages things on a single project, we have to install it globally. For each platform there are different setups:
Windows
Run choco install fvm
.
MacOS & Linux
If you haven’t already, install Homebrew package manager and run the following commands:
Install: brew tap leoafarias/fvm; brew install fvm
.