|
...
|
...
|
@@ -58,7 +58,7 @@ class TodaySleepCard extends StatelessWidget { |
|
|
|
if (sleepHours > 0) ...[
|
|
|
|
TextSpan(text: '$sleepHours'),
|
|
|
|
TextSpan(
|
|
|
|
text: ' ${l10n.reportUnitHour} ',
|
|
|
|
text: l10n.reportUnitHour,
|
|
|
|
style: TextStyle(
|
|
|
|
color: context.colors.textSecondary,
|
|
|
|
fontSize: 12,
|
|
...
|
...
|
@@ -69,7 +69,7 @@ class TodaySleepCard extends StatelessWidget { |
|
|
|
if (sleepMinutes > 0) ...[
|
|
|
|
TextSpan(text: '$sleepMinutes'),
|
|
|
|
TextSpan(
|
|
|
|
text: ' ${l10n.reportUnitMinute}',
|
|
|
|
text: l10n.reportUnitMinute,
|
|
|
|
style: TextStyle(
|
|
|
|
color: context.colors.textSecondary,
|
|
|
|
fontSize: 12,
|
|
...
|
...
|
@@ -114,7 +114,7 @@ class TodaySleepCard extends StatelessWidget { |
|
|
|
children: [
|
|
|
|
TextSpan(text: sleepAverageHeartRate),
|
|
|
|
TextSpan(
|
|
|
|
text: ' bpm',
|
|
|
|
text: 'bpm',
|
|
|
|
style: TextStyle(
|
|
|
|
color: context.colors.textSecondary,
|
|
|
|
fontSize: 12,
|
|
...
|
...
|
@@ -196,7 +196,7 @@ class TodayActivityCard extends StatelessWidget { |
|
|
|
if (exHours > 0) ...[
|
|
|
|
TextSpan(text: '$exHours'),
|
|
|
|
TextSpan(
|
|
|
|
text: ' ${l10n.reportUnitHour} ',
|
|
|
|
text: l10n.reportUnitHour,
|
|
|
|
style: TextStyle(
|
|
|
|
color: context.colors.textSecondary,
|
|
|
|
fontSize: 12,
|
|
...
|
...
|
@@ -207,7 +207,7 @@ class TodayActivityCard extends StatelessWidget { |
|
|
|
if (exMinutes > 0 || exHours == 0) ...[
|
|
|
|
TextSpan(text: exMinutes > 0 ? '$exMinutes' : '0'),
|
|
|
|
TextSpan(
|
|
|
|
text: ' ${l10n.reportUnitMinute}',
|
|
|
|
text: l10n.reportUnitMinute,
|
|
|
|
style: TextStyle(
|
|
|
|
color: context.colors.textSecondary,
|
|
|
|
fontSize: 12,
|
|
...
|
...
|
@@ -246,7 +246,7 @@ class TodayActivityCard extends StatelessWidget { |
|
|
|
children: [
|
|
|
|
TextSpan(text: '$stand'),
|
|
|
|
TextSpan(
|
|
|
|
text: ' ${l10n.reportUnitHour}',
|
|
|
|
text: l10n.reportUnitHour,
|
|
|
|
style: TextStyle(
|
|
|
|
color: context.colors.textSecondary,
|
|
|
|
fontSize: 12,
|
|
...
|
...
|
@@ -302,7 +302,7 @@ class TodayActivityCard extends StatelessWidget { |
|
|
|
TextSpan(text: activityStr),
|
|
|
|
if (activityStr != '-')
|
|
|
|
TextSpan(
|
|
|
|
text: ' ${l10n.reportUnitKcal}',
|
|
|
|
text: l10n.reportUnitKcal,
|
|
|
|
style: TextStyle(
|
|
|
|
color: context.colors.textSecondary,
|
|
|
|
fontSize: 12,
|
...
|
...
|
|