flutter on macos code example
Example 1: add flutter to path mac permanently
Open Terminal
nano ~/.zshrc
Add: export PATH=[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin:$PATH
Run: source ~/.zshrc
restart terminal
Run: flutter doctor -v
Example 2: flutter setup macos
if your terminal doesn't see "flutter" you have to use
Open terminal and paste
export PATH="$PATH:`pwd`/flutter/bin"
and then try "flutter" && "flutter doctor"
Example 3: build flutter for macos
flutter channel masterflutter upgrade
Example 4: run flutter app macos
open terminal tap "cd" Drag/drop with mouse the Folder of your App and tap enter
Tap "flutter run" tap enter