Skip to content
This repository has been archived by the owner on Jun 4, 2020. It is now read-only.

MiderWong/homebrew-flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Flutter

Homebrew shell for Flutter in flutter/flutter github (https://github.com/flutter/flutter)

Installation:

①、Install stable channel:

$ brew tap MiderWong/flutter
$ brew install flutter

②、Install devel channel:

$ brew tap MiderWong/flutter
$ brew install --devel flutter

Upgrade

①、Upgrade stable channel:

$ brew reinstall flutter

②、Upgrade devel channel:

$ brew reinstall --devel flutter

Change channel

①、Change stable to dev:

$ brew uninstall --force flutter
$ rm -rf "$(brew --cache)/flutter--git"
$ brew install --devel flutter

②、Change dev to stable:

$ brew uninstall --force flutter
$ rm -rf "$(brew --cache)/flutter--git"
$ brew install flutter

Uninstallation:

$ brew uninstall --force flutter
$ rm -rf "$(brew --cache)/flutter--git"
$ brew untap MiderWong/flutter

Post-Installation:

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

About

Homebrew formula for Flutter.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages