How to Setup Multiple Flutter Versions on Mac?
Last Updated :
01 Feb, 2023
If you are a flutter developer, working on projects with different flutter versions and using Macbook. You have definitely faced this problem that how to run projects with different flutter versions at the same time. If you will use FVM (Flutter version management) You can get rid of this problem. FVM is just a simple CLI that is used to manage different flutter versions with different projects. There are a few steps you have to follow to install and set up FVM on your pc.
Step by Step Implementation
Step 1. Install Brew
If you already have brew installed then you can skip this step. Run this command in your terminal
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Step 2. Check whether brew is installed or not
Check whether the brew is installed or not. By typing brew --version in your terminal. If it was installed you will get different commands available in the brew.
Step 3. Install FVM
brew install fvm
Step 4. Check whether FVM is installed or not
After installing check whether FVM is installed or not by typing fvm --version if it will show the version number
Step 5. You are ready to use FVM for your flutter projects
Go to the project folder and write this in your project folder terminal. So that your project starts getting access to all flutter command
fvm use {version}
Note: Whenever you install a new flutter version it will take some time as well as your internet .as it will download those particular flutter SDKs in your device.
Step 6. Now your project uses FVM
Run any command with FVM as prefix like
- fvm flutter run
- fvm flutter build apk
Bonus Point
If you want to create a project in flutter then if you use the command
fvm use {version}
It will give you this error
For creating a flutter project using FVM you can use this command first after that command for creating a flutter project with fvm as prefix
fvm use {version} --force
Now you are good to go!!
Similar Reads
How to Install Flutter on Visual Studio Code? In this article, we will walk through the process of installing Flutter in Visual Studio Code. Flutter is an open-source portable UI framework for mobile, desktop, and web. It is developed and managed by Google, Flutter is used for creating a high-quality, beautiful, and fast native interface for an
4 min read
How to Install Flutter on Windows? Flutter is Google's portable user interface (UI) toolkit. It is used to build and develop eye-catching, natively built mobile, desktop, and web applications from a single codebase. Flutter is free, open-sourced, and compatible with existing code. Due to its user-friendly interface and fairly simple
8 min read
Flutter - How to Use SVG Image SVG (Scalable Vector Graphics) is a vector image format that can be used to create high-quality, resolution-independent graphics. In Flutter, you can use SVG images to display vector graphics in your app. To use SVG images in Flutter, you can use the  flutter_svg package to display SVG images in Flu
3 min read
How to Install Flutter on Linux? In this article, we will learn how to install Flutter in Linux Flutter is an open-source UI software development kit created by Google. It is used to develop cross-platform applications for Android, iOS, Linux, Mac, Windows, Google Fuchsia, and the web from a single codebase. Installing Flutter on L
2 min read
How to Setup SharedPreferences in Flutter? SharedPreferences is a package that enables the Application to store a small amount of data in your local storage. Like user name, id, etc. You don't need other databases for it like SQLITE, FIREBASE, etc. So in this article, we will see How to install the Shared Preferences package in Dart/Flutter
1 min read