Setup guideline for installing and configuring Flutter using iTerm2 and FVM on macOS:
- Download and install iTerm2 from iterm2.com.
- Open iTerm2 and proceed with the following steps.
- Install Homebrew for managing dependencies:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install FVM using Homebrew:
brew tap leoafarias/fvm brew install fvm
-
Install the desired Flutter version:
fvm install stable
(Replace
stable
with a specific version if required, e.g.,fvm install 3.13.2
.) -
Set the default Flutter version globally:
fvm global stable
-
Edit your shell configuration file:
nano ~/.zshrc # For zsh shell
-
Add FVM’s default binary path:
export PATH="$PATH:$HOME/.fvm/default/bin"
-
Save the file and apply the changes:
source ~/.zshrc
- Verify Flutter installation through FVM:
fvm flutter --version
- Install your preferred IDE (e.g., Visual Studio Code or Android Studio).
- Add Flutter and Dart plugins in the IDE.
- Update the Flutter SDK path in the IDE to:
~/.fvm/versions/stable
-
Create a Flutter project:
fvm flutter create my_app
-
Navigate to the project directory:
cd my_app
-
Run the project:
fvm flutter run
This streamlined guideline sets up Flutter using iTerm2 and FVM on macOS efficiently.