In this article, I’ll show you how to install the Flutter on macOS.
Install
First, let’s go to the official Flutter website.
The next step is to choose the macOS platform:

Then we need to download the following installation bundle to get the latest stable release of the Flutter SDK.
I’ve placed the zip in the development folder.

Extract the file to the current location.

As you can see the location of the development folder is in the home directory.

Update path
Now you need to check which shell you are using.
Typing echo $SHELL in your Terminal tells you which shell you’re using
If you’re using Bash, edit $HOME/.bash_profile or $HOME/.bashrc. If you’re using Z shell, edit $HOME/.zshrc.

So, for me, I need to edit the .zshrc file with the following command.
sudo nano ~/.zshrc
Then you should add the following line to your file:
export PATH="$PATH:[PATH_OF_FLUTTER_GIT_DIRECTORY]/bin"
I have Flutter located inside “home/development”.
export PATH="$PATH:$HOME/development/flutter/bin"
Then you need to save these changes.
Run Flutter
Now you need to run Flutter doctor.
Run the following command in the terminal.
flutter doctor
If you get such an error:

You need to run the following command.
source ~/.zshrc
And rerun Flutter doctor

If you have a warning like this:
[-] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
You need to open the console window and run the following command to begin signing licenses.
flutter doctor --android-licenses
Great!
Thank you for reading!
