Skip to content

Instantly share code, notes, and snippets.

@rakuishi
Last active February 3, 2022 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rakuishi/10b14ef2eb6f15109ca34a887a5c52bf to your computer and use it in GitHub Desktop.
Save rakuishi/10b14ef2eb6f15109ca34a887a5c52bf to your computer and use it in GitHub Desktop.

Install the Flutter

https://flutter.dev/docs/get-started/install/macos

$ cd ~/Projects
$ unzip ~/Downloads/flutter_macos_v1.9.1+hotfix.2-stable.zip
$ export PATH="$PATH:/Users/rakuishi/Projects/flutter/bin"
$ source ~/.bash_profile
$ flutter precache
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.9.1+hotfix.2, on Mac OS X 10.14.6 18G87, locale en-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
[!] Android Studio (version 3.5)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[!] VS Code (version 1.37.1)
    ✗ Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[!] Connected device
    ! No devices available

! Doctor found issues in 3 categories.

Install Dart plugins

https://flutter.dev/docs/get-started/editor

  1. Start Android Studio.
  2. Open plugin preferences (Preferences > Plugins on macOS, File > Settings > Plugins on Windows & Linux).
  3. Select Browse repositories, select the Flutter plugin and click Install.
  4. Click Yes when prompted to install the Dart plugin.
  5. Click Restart when prompted.
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.9.1+hotfix.2, on Mac OS X 10.14.6 18G87, locale en-JP)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
[✓] Android Studio (version 3.5)
[!] VS Code (version 1.37.1)
    ✗ Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

Use a library

https://pub.dev/packages/http#-installing-tab-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment