Day1: Flutter Installation - pollyolly/FLUTTER-NOTES GitHub Wiki
M1
Download Flutter SDK
$ git clone https://github.com/flutter/flutter.git -b stable
Install rosetta and agree to license
$sudo softwareupdate --install-rosetta --agree-to-license
Create your development folder
$mkdir dev-flutter
Copy the SDK inside the dev-flutter folder
$unzip ~/Downloads/flutter_macos_3.16.3-stable.zip
$mv flutter dev-flutter
Add the permanent PATH of your Flutter SDK
Check the shell your are using
$echo $SHELL
Output: /bin/zsh
Edit the Shell if zsh or bash
$vi $HOME/.bashrc
or
$vim $HOME/.zshrc
Add the line below (Path to your SDK)
# /Users/roco/Desktop/dev-flutter/flutter
export PATH="$PATH:/Users/roco/Desktop/dev-flutter/flutter/bin"
Run the command to refresh the PATH
$source $HOME./zshrc
Check the current PATH and Verify flutter command if running
$ echo $PATH
$ which flutter