|
...
|
...
|
@@ -296,12 +296,12 @@ class _MonthExtreme extends StatelessWidget { |
|
|
|
final separator =
|
|
|
|
Localizations.localeOf(context).languageCode == 'zh' ? ',' : ', ';
|
|
|
|
final value = months.isEmpty
|
|
|
|
? '-月'
|
|
|
|
? context.l10n.hrvEmptyMonthPlaceholder
|
|
|
|
: months.map((month) => reportMonth(month)).join(separator);
|
|
|
|
return Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(label, style: const TextStyle(color: _h3, fontSize: 11)),
|
|
|
|
Text(label, style: const TextStyle(color: _h2, fontSize: 11)),
|
|
|
|
const SizedBox(height: 5),
|
|
|
|
Text(
|
|
|
|
value,
|
|
...
|
...
|
@@ -317,13 +317,19 @@ class _StressAxisLabels extends StatelessWidget { |
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return const SizedBox(
|
|
|
|
return SizedBox(
|
|
|
|
width: 14,
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
RotatedBox(quarterTurns: 1, child: _StressAxisText('轻松')),
|
|
|
|
RotatedBox(quarterTurns: 1, child: _StressAxisText('压力大')),
|
|
|
|
RotatedBox(
|
|
|
|
quarterTurns: 1,
|
|
|
|
child: _StressAxisText(context.l10n.hrvRelaxedAxisLabel),
|
|
|
|
),
|
|
|
|
RotatedBox(
|
|
|
|
quarterTurns: 1,
|
|
|
|
child: _StressAxisText(context.l10n.hrvStressedAxisLabel),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
...
|
...
|
@@ -402,7 +408,7 @@ class _YearDistributionCard extends StatelessWidget { |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(context.l10n.hrvValidDays,
|
|
|
|
style: const TextStyle(color: _h3, fontSize: 11)),
|
|
|
|
style: const TextStyle(color: _h2, fontSize: 11)),
|
|
|
|
const SizedBox(height: 3),
|
|
|
|
_Number(
|
|
|
|
value: '${report.validDays}',
|
|
...
|
...
|
@@ -601,12 +607,14 @@ class _DateExtreme extends StatelessWidget { |
|
|
|
Localizations.localeOf(context).languageCode == 'zh' ? ',' : ', ';
|
|
|
|
final value = [
|
|
|
|
for (var i = 0; i < 2; i++)
|
|
|
|
i < days.length ? reportMonthDay(days[i].date) : '-月-日',
|
|
|
|
i < days.length
|
|
|
|
? reportMonthDay(days[i].date)
|
|
|
|
: context.l10n.hrvEmptyMonthDayPlaceholder,
|
|
|
|
].join(separator);
|
|
|
|
return Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(label, style: const TextStyle(color: _h3, fontSize: 10)),
|
|
|
|
Text(label, style: const TextStyle(color: _h2, fontSize: 10)),
|
|
|
|
const SizedBox(height: 6),
|
|
|
|
Text(value,
|
|
|
|
style: const TextStyle(fontSize: 14, fontWeight: FontWeight.w600)),
|
|
...
|
...
|
@@ -644,10 +652,10 @@ class _LevelItem extends StatelessWidget { |
|
|
|
? '$count${context.l10n.reportUnitDay}'
|
|
|
|
: context.l10n.reportWaitingForData,
|
|
|
|
style: TextStyle(
|
|
|
|
color: report.hasData ? _h1 : _h3,
|
|
|
|
color: report.hasData ? _h1 : _h2,
|
|
|
|
fontSize: report.hasData ? 19 : 13,
|
|
|
|
fontWeight: FontWeight.w500)),
|
|
|
|
Text('$percent%', style: const TextStyle(color: _h3, fontSize: 9)),
|
|
|
|
Text('$percent%', style: const TextStyle(color: _h2, fontSize: 9)),
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
...
|
...
|
|