Please follow the steps below:
- Open the Terminal.
- Type:
nano ~/.zshrc
- Type:
export PATH=[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin:$PATH
4. Press control+x
to Exit
5. Type: source ~/.zshrc
6. Restart the Terminal.
7. Verify by typing flutter --version
reference
https://docs.flutter.dev/get-started/install/macos#update-your-path