Open1

WindowsでのFlutter環境構築

FynnFynn

1. FlutterSDKのダウンロード

以下のURLからFlutter SDKをダウンロード
https://docs.flutter.dev/get-started/install/windows#get-the-flutter-sdk

flutter_windows_<Version>-stable.zipボタンをクリック

2,FlutterSDKの展開と配置

ダウンロードしたフォルダを展開
展開したフォルダの中のflutterフォルダを任意のフォルダに配置
今回はC:\dev配下に配置

C:\dev>cd
C:\dev

C:\dev>dir /b
flutter

3.PATH環境変数の更新


コマンドプロンプトでwhereコマンドを実行するとPATHが通ったか確認できる
※ Windowsではデフォルトでwhichコマンドは存在しないが、whereコマンドで代替できる

C:\Users\Fynn>where flutter
C:\dev\flutter\bin\flutter
C:\dev\flutter\bin\flutter.bat

4. flutter doctorコマンドの実行

C:\Users\Fynn>flutter doctor

  ╔════════════════════════════════════════════════════════════════════════════╗
  ║                 Welcome to Flutter! - https://flutter.dev                  ║
  ║                                                                            ║
  ║ The Flutter tool uses Google Analytics to anonymously report feature usage ║
  ║ statistics and basic crash reports. This data is used to help improve      ║
  ║ Flutter tools over time.                                                   ║
  ║                                                                            ║
  ║ Flutter tool analytics are not sent on the very first run. To disable      ║
  ║ reporting, type 'flutter config --no-analytics'. To display the current    ║
  ║ setting, type 'flutter config'. If you opt out of analytics, an opt-out    ║
  ║ event will be sent, and then no further information will be sent by the    ║
  ║ Flutter tool.                                                              ║
  ║                                                                            ║
  ║ By downloading the Flutter SDK, you agree to the Google Terms of Service.  ║
  ║ Note: The Google Privacy Policy describes how data is handled in this      ║
  ║ service.                                                                   ║
  ║                                                                            ║
  ║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and  ║
  ║ crash reports to Google.                                                   ║
  ║                                                                            ║
  ║ Read about data we send with crash reports:                                ║
  ║ https://flutter.dev/docs/reference/crash-reporting                         ║
  ║                                                                            ║
  ║ See Google's privacy policy:                                               ║
  ║ https://policies.google.com/privacy                                        ║
  ╚════════════════════════════════════════════════════════════════════════════╝