Install Multiple Flutter Version using FVM (Flutter Version Management)
When you have multiple Flutter projects and each project use different flutter SDK version so every time you switch project you have to switch flutter SDK version so that is a very tedious and time-consuming process.
What is FVM(flutter version management)
FVM is a simple CLI to manage Flutter SDK versions.
FVM caches those versions locally, so you don’t have to wait for a full setup every time you want to switch versions.
flutter pub global activate fvm
Note-: If you are using window terminal (Command Prompt) you see and crash then switch to Power shell.
find out more about the issue here
3. Installing Flutter Versions
Now you can install any flutter version you want. I am installing a stable and master channel.
fvm install master
You can install a specify version by using
To see all installed flutter version
4.Setting Project Path
Go to your project root directory and type fvm use master or stable
fvm use master
Open you IDE I am using android studio and set the flutter SDK path as below check out the video.
We have Successfully installed FVM.
ENJOY YOUR CODING!
If you like this article, please tap on the claps