🦔

Flutter環境構築

2020/12/20に公開

はじめに

公式ドキュメントがあるのでこちらを見ながら進めると良いと思います
https://flutter.dev/docs/get-started/install/macos

環境構築

flutterのダウンロード

適当なフォルダに移動してcloneします

git clone https://github.com/flutter/flutter.git

pathを通す

export PATH=`pwd`/flutter/bin:$PATH

※.bash_profileを直接書き直してもOK

flutterの環境確認

上記でパスを通すと

flutter doctor

が叩けるようになるので叩きます

No issues found!

となったら環境構築完了です
おつかれさまでした〜

※エラーが出る時は

  • Xcode/Android Studioをインストールしていない
  • Android Studio/エディタのプラグインを導入していない
  • iOS/Androidのシミュレータを起動していない

場合が多いです。

おわりに

アプリ作成はまた別の機会に書きます(予定)

Discussion