https://github.com/fujidaiti/yumemi-flutter-codecheck
https://github.com/fujidaiti/yumemi-flutter-codecheck
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fujidaiti/yumemi-flutter-codecheck
- Owner: fujidaiti
- License: mit
- Created: 2023-07-03T01:50:51.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-07-21T02:31:59.000Z (about 2 years ago)
- Last Synced: 2025-01-02T02:42:45.556Z (9 months ago)
- Language: Dart
- Homepage:
- Size: 51.3 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 株式会社ゆめみ Flutter エンジニアコードチェック課題
このリポジトリは[株式会社ゆめみ Flutter エンジニアコードチェック課題](https://github.com/yumemi-inc/flutter-engineer-codecheck.git)に取り組んだ際の成果物です。
## 成果物
#### デプロイ先
https://fujidaiti.github.io/yumemi-flutter-codecheck/#/
#### デモ動画
## ダークモード
システムのテーマ(Dark/Light)に合わせてアプリのテーマも切り替わります。
![]()
![]()
![]()
## 実行
一部タスクの実行には[cargo_make](https://github.com/sagiegurari/cargo-make)を用いています。
以下のコマンドでデバッグモードのアプリを実行できます。自動生成ファイル(`*.freezed.dart`など)がgit管理されていないため、先に`build_runner`を実行しコード生成を行う必要があります(`makers`を利用する場合は明示的に実行する必要はありません)。
```shell
# cargo_makeを使う場合
makers run -d# もしくは
flutter pub run build_runner build --delete-conflicting-outputs && \
flutter pub run -d
```リリースモードで実行する場合は次のように`--release`を追加してください。
```shell
makers run -d --release# もしくは
flutter pub run build_runner build --delete-conflicting-outputs && \
flutter pub run -d --release
```### フェイクデータ
デフォルトでは本番データ(GitHub API)を用いますが、フェイクデータを利用することもできます。この場合、通信は発生しません。
```shell
# runではなくfun
makers fun -d# もしくは
flutter pub run build_runner build --delete-conflicting-outputs && \
flutter pub run -d --dart-define DataType=fake
````--release`を付ければ先程と同様にリリースモードで実行できます。
## その他
静的解析やテスト等は`flutter`コマンドで行います。
```shell
# 静的解析
flutter analyze# テスト(Mockitoによるコード生成が必要)
flutter pub run build_runner build --delete-conflicting-outputs && \
flutter test
```## クレジット
GitHubのロゴは[Primer/Octvisuals](https://primer.style/design/foundations/icons/octovisuals)から取得しました。