Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -33,11 +33,11 @@ class TodaySleepCard extends StatelessWidget { | @@ -33,11 +33,11 @@ class TodaySleepCard extends StatelessWidget { | ||
| 33 | ? '-' | 33 | ? '-' |
| 34 | : '${healthData?.hrAvg}'; | 34 | : '${healthData?.hrAvg}'; |
| 35 | double sleepDurationProgress = | 35 | double sleepDurationProgress = |
| 36 | - (activityTarget?.sleepTargetDuration ?? 0) == 0 || | 36 | + (activityTarget?.sleepTargetDuration ?? 28800) == 0 || |
| 37 | sleepDuration == 0 | 37 | sleepDuration == 0 |
| 38 | ? -1 | 38 | ? -1 |
| 39 | : ((healthData?.sleepDuration ?? 0) / | 39 | : ((healthData?.sleepDuration ?? 0) / |
| 40 | - (activityTarget?.sleepTargetDuration ?? 0) * | 40 | + (activityTarget?.sleepTargetDuration ?? 28800) * |
| 41 | 360); | 41 | 360); |
| 42 | double sleepScoreProgress = | 42 | double sleepScoreProgress = |
| 43 | sleepDuration == 0 ? -1 : (healthData?.sleepScore ?? 0.0) * 3.6; | 43 | sleepDuration == 0 ? -1 : (healthData?.sleepScore ?? 0.0) * 3.6; |
-
Please register or login to post a comment