Homebrew shell for Flutter in flutter/flutter github (https://github.com/flutter/flutter)
$ brew tap MiderWong/flutter
$ brew install flutter
$ brew tap MiderWong/flutter
$ brew install --devel flutter
$ brew reinstall flutter
$ brew reinstall --devel flutter
$ brew uninstall --force flutter
$ rm -rf "$(brew --cache)/flutter--git"
$ brew install --devel flutter
$ brew uninstall --force flutter
$ rm -rf "$(brew --cache)/flutter--git"
$ brew install flutter
$ brew uninstall --force flutter
$ rm -rf "$(brew --cache)/flutter--git"
$ brew untap MiderWong/flutter
flutter path will be
/usr/local/opt/flutter
dart-sdk path will be
/usr/local/opt/flutter/bin/cache/dart-sdk
If you're located in China, please follow:
https://github.com/flutter/flutter/wiki/Using-Flutter-in-China
After installed , please set PUB_HOSTED_URL
& FLUTTER_STORAGE_BASE_URL
You may wish to add the flutter-ROOT install location to your PATH:
$ echo 'export PATH="/usr/local/opt/flutter/bin:$PATH"' >> ~/.zshrc
You can use the following command to show flutter version:
$ flutter --version
Run the following command to see if there are any platform dependencies you need to complete the setup:
$ flutter doctor