Flutter を Wondows の WSL2 にインストールする
https://gyazo.com/60979a52750ff4ae78a5a98b543e48d8
今回はデスクトップアプリケーションを作成したいので、モバイルの設定は割愛する。
必要なライブラリをインストールする
https://docs.flutter.dev/get-started/install/linux/desktop?tab=vscode
WSL2 上に flutter SDK をダウンロードして、パスを通す。
code:bash
$ wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.19.5-stable.tar.xz
$ tar -xvf ./flutter_linux_3.19.5-stable.tar.xz
$ mkdir ~/development
$ mv flutter ~/development/
$ echo 'export PATH="$HOME/development/flutter/bin:$PATH"' >> ~/.bashrc
$ source ~/.bashrc
このあと、 flutter doctor を実行し、 Flutter のインストールが OK になっていれば問題ない。
この後は、こちらのチュートリアルに沿って進める。
https://codelabs.developers.google.com/codelabs/flutter-github-client?hl=ja#0
https://blog.1q77.com/2024/01/open-browser-in-wsl/