Skip to content

zhihao0797/Flutter-install-with-fvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Setup guideline for installing and configuring Flutter using iTerm2 and FVM on macOS:


Step 1: Install iTerm2

  1. Download and install iTerm2 from iterm2.com.
  2. Open iTerm2 and proceed with the following steps.

Step 2: Install Homebrew

  • Install Homebrew for managing dependencies:
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Step 3: Install FVM (Flutter Version Manager)

  1. Install FVM using Homebrew:
    brew tap leoafarias/fvm
    brew install fvm

Step 4: Install Flutter via FVM

  1. Install the desired Flutter version:

    fvm install stable

    (Replace stable with a specific version if required, e.g., fvm install 3.13.2.)

  2. Set the default Flutter version globally:

    fvm global stable

Step 5: Configure PATH for FVM

  1. Edit your shell configuration file:

    nano ~/.zshrc  # For zsh shell
  2. Add FVM’s default binary path:

    export PATH="$PATH:$HOME/.fvm/default/bin"
  3. Save the file and apply the changes:

    source ~/.zshrc

Step 6: Verify Installation

  • Verify Flutter installation through FVM:
    fvm flutter --version

Step 7: Set Up IDE

  1. Install your preferred IDE (e.g., Visual Studio Code or Android Studio).
  2. Add Flutter and Dart plugins in the IDE.
  3. Update the Flutter SDK path in the IDE to:
    ~/.fvm/versions/stable
    

Step 8: Create and Run a Flutter Project

  1. Create a Flutter project:

    fvm flutter create my_app
  2. Navigate to the project directory:

    cd my_app
  3. Run the project:

    fvm flutter run

This streamlined guideline sets up Flutter using iTerm2 and FVM on macOS efficiently.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published