Setup Flutter Path or Install Flutter in Mac OS

Rohanchhatbar
1 min readDec 23, 2020

follow this step To permanently add Flutter to your path

Flutter has good installation documentation, but to update flutter path permanently on macOS need to follow this steps

  1. Download Flutter Framework from here
    https://flutter.dev/docs/get-started/install/macos
  2. If bash Shell then run this command in terminal
    nano ~/.bash_profile
    If zsh Shell then run this command in terminal
    nano ~/.zshrc
  3. Add the following line and change [PATH_TO_FLUTTER_GIT_DIRECTORY] to be the path where you cloned Flutter’s git repo:
    export PATH=”$PATH:[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin”
    for example:
    export PATH=”$PATH:user/rohan/flutter/bin”
  4. press CTRL X and when it asked you to save the file, choose yes
  5. after that, if bash Shell then run source ~/.bash_profile to refresh the current window or restart the terminal
    if zsh Shell then run source ~/.zsh to refresh the current window or restart the terminal
  6. Verify that the flutter/bin directory is now in your PATH by running: echo $PATH
  7. After that check flutter doctor

Notice that [PATH_TO_FLUTTER_GIT_DIRECTORY] is where you installed flutter SDK, not the location of your app

That ends the tutorial on installing and setting up Flutter on a Mac device. Now you can start developing apps

Hope this guide helped!

--

--