本リポジトリは flutter の学習用サンプルリポジトリです devcontainer の設定をしていますので、VS Code と Docker、Git さえあれば各種開発用設定が行われた Flutter の開発環境が構築され、即時開発が可能です
- devcontainer
- lint
- GitHub Actions
- Deploy GitHub Pages
- Publish GitHub Packages
- Dart : 2.16.0
- Flutter : 2.10.0
- Docker インストール
- VS Code インストール
- VS Code の拡張機能「Remote - Containers」インストール
- 本リポジトリの clone
- VS Code 起動
- 左下の緑色のアイコンクリック
- 「Remote-Containersa: Reopen in Container」クリック
- しばらく待つ
- 初回の場合コンテナー image の取得や作成が行われる
- 起動
flutter create default_app
cd default_app
flutter run -d web-server --web-port=8080 --web-hostname=0.0.0.0
https://flutter.dev/docs/get-started/codelab
flutter create flutter_tutorial
cd flutter_tutorial
flutter pub get
flutter run -d web-server --web-port=8080 --web-hostname=0.0.0.0
flutter create password_post
cd password_post
flutter pub get
flutter run -d web-server --web-port=8080 --web-hostname=0.0.0.0
cd flutter_tutorial
flutter pub get
flutter build web
docker run -d -p 8081:80 -v "/Users/yamap_55/github/flutter_sample/flutter_tutorial/build/web/:/usr/local/apache2/htdocs/" httpd
docker run --rm -it -d -p 8081:80 ghcr.io/yamap55/flutter_sample:latest
- Display "http://localhost:8081" in your browser.