MiderWong / homebrew-flutter

Homebrew formula for Flutter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Ruby 100.0%