💄 Specialize details for 大吉 and 大凶

This commit is contained in:
LittleSheep 2024-11-29 23:30:40 +08:00
parent 997562d174
commit ddfbcc5e58
3 changed files with 39 additions and 6 deletions

View File

@ -261,6 +261,8 @@
"dailyCheckDetailTitle": "{}'s fortune details", "dailyCheckDetailTitle": "{}'s fortune details",
"dailyCheckPositiveHint": "Good for {}", "dailyCheckPositiveHint": "Good for {}",
"dailyCheckNegativeHint": "Bad for {}", "dailyCheckNegativeHint": "Bad for {}",
"dailyCheckEverythingIsPositive": "Everything going to be awesome!",
"dailyCheckEverythingIsNegative": "Everything may be wrong...",
"dailyCheckPositiveHint1": "Making friends", "dailyCheckPositiveHint1": "Making friends",
"dailyCheckPositiveHint1Description": "Friendship lasts forever", "dailyCheckPositiveHint1Description": "Friendship lasts forever",
"dailyCheckPositiveHint2": "Drinking", "dailyCheckPositiveHint2": "Drinking",

View File

@ -261,6 +261,8 @@
"dailyCheckDetailTitle": "{} 的运势详情", "dailyCheckDetailTitle": "{} 的运势详情",
"dailyCheckPositiveHint": "宜 {}", "dailyCheckPositiveHint": "宜 {}",
"dailyCheckNegativeHint": "忌 {}", "dailyCheckNegativeHint": "忌 {}",
"dailyCheckEverythingIsPositive": "诸事皆宜",
"dailyCheckEverythingIsNegative": "诸事不宜",
"dailyCheckPositiveHint1": "交友", "dailyCheckPositiveHint1": "交友",
"dailyCheckPositiveHint1Description": "友谊地久天长", "dailyCheckPositiveHint1Description": "友谊地久天长",
"dailyCheckPositiveHint2": "饮酒", "dailyCheckPositiveHint2": "饮酒",

View File

@ -198,13 +198,42 @@ class _HomeDashCheckInWidgetState extends State<_HomeDashCheckInWidget> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
_buildDetailChunk(0, true), if (_todayRecord?.resultTier != 0)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
_buildDetailChunk(0, true),
const Gap(8),
_buildDetailChunk(1, true),
],
)
else
Text(
'dailyCheckEverythingIsNegative',
style: Theme.of(context)
.textTheme
.titleMedium!
.copyWith(fontWeight: FontWeight.bold),
).tr(),
const Gap(8), const Gap(8),
_buildDetailChunk(1, true), if (_todayRecord?.resultTier != 4)
const Gap(8), Column(
_buildDetailChunk(2, false), crossAxisAlignment: CrossAxisAlignment.start,
const Gap(8), mainAxisSize: MainAxisSize.min,
_buildDetailChunk(3, false), children: [
_buildDetailChunk(2, false),
const Gap(8),
_buildDetailChunk(3, false),
],
)
else
Text(
'dailyCheckEverythingIsPositive',
style: Theme.of(context)
.textTheme
.titleMedium!
.copyWith(fontWeight: FontWeight.bold),
).tr(),
], ],
), ),
actions: [ actions: [