Setup Flutter Path or Install Flutter in Mac OS
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
- Download Flutter Framework from here
https://flutter.dev/docs/get-started/install/macos - If bash Shell then run this command in terminal
nano ~/.bash_profile
If zsh Shell then run this command in terminal
nano ~/.zshrc - 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” - press CTRL X and when it asked you to save the file, choose yes
- 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 - Verify that the flutter/bin directory is now in your PATH by running: echo $PATH
- 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!