Flutter can be installed on macOS as follows:
- Download the latest stable SDK from https://storage.googleapis.com/flutter_infra/releases/stable/macos/flutter_macos_v1.9.1+hotfix.6-stable.zip.
- Extract the downloaded ZIP folder to a suitable location, like so:
$cd ~/$unzip ~/Downloads/flutter_macos_v1.9.1+hotfix.6-stable.zip
- Add the flutter tool to the path variable: $ export PATH=`pwd`/flutter/bin:$PATH.
- Open bash_profile to permanently update PATH:
$cd ~$nano .bash_profile
- Add the following line to bash_profile:
$export PATH=$HOME/flutter/bin:$PATH
- Run flutter doctor.