Currently installs flutter latest stable version in flutter/flutter github (https://github.com/flutter/flutter)
$ brew tap MiderWong/flutter
$ brew install flutter
$ brew upgrade flutter
or
$ flutter upgrade
$ brew uninstall 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,run the following command to see if there are any platform dependencies you need to complete the setup:
$ flutter doctor