A new Flutter project.
これはflutterのサンプルコードのレポジトリです。github Publicでできることが限られているため公開しているだけで、内容はプライベートなものなので誰かに参考にしてもらうことは想定しておりません。
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
-
gitignoreで色々消しているのでcloneしてもおそらく動かない
-
osはmacOS。flutterの環境構築はこちらを参考
-
ターミナル上で同様のプロジェクト作成するには以下の通り(gitからcloneした場合は不要)
-
flutter doctorを実行し、少なくともiosかandoroidのどちらかのシミュレータが動く環境になっているか確認(これを作成したとき(2022/1/3)時点ではとりあえずiOSだけ動くようにした) -
open -a Simulatorでシミュレータが動くことを確認 -
flutter create アプリ名でプロジェクトを作成 -
lib/main.dartをVScodeかandoroid Studio上で実行し、動くことを確認(
flutter runでも良い) -
shared_preferencesを第6回くらいで使うので、
flutter pub add shared_preferencesを実行