- 入力された身長、体重からBMIを計算するアプリ
- 肥満度の設定は厚生労働省の定義に従う
- libフォルダ配下の構成
.
├── components
│ ├── clear_button.dart
│ ├── height_text_form.dart
│ ├── obesity_text.dart
│ └── weight_text_form.dart
├── constants
│ ├── colors.dart
│ ├── dimens.dart
│ ├── numbers.dart
│ └── strings.dart
├── main.dart
├── result.dart
├── result.g.dart
└── screen
├── input_screen.dart
└── result_screen.dart
入力画面
画面表示時 | 入力時 |
---|---|
計算結果画面
- Riverpodで行っていること
- 計算
- 肥満度(計算結果)の設定
- 肥満度ごとの文字色の設定
低体重 | 普通体重 | 肥満(1度) |
---|---|---|
肥満(2度) | 肥満(3度) | 肥満(4度) |
---|---|---|