|
...
|
...
|
@@ -25,7 +25,8 @@ class TodaySleepCard extends StatelessWidget { |
|
|
|
int sleepMinutes = (sleepDuration % 3600) ~/ 60;
|
|
|
|
Color sleepStateColor = sleepDuration == 0
|
|
|
|
? context.colors.textPrimary
|
|
|
|
: healthData?.sleepStateColor(context);
|
|
|
|
: healthData?.sleepStateColor(context) ??
|
|
|
|
context.colors.textPrimary;
|
|
|
|
String sleepStateStr =
|
|
|
|
sleepDuration == 0 ? '-' : healthData?.sleepStateStr() ?? '-';
|
|
|
|
String sleepAverageHeartRate =
|
...
|
...
|
|