fix:导航栏交互和UI

This commit is contained in:
jingyun
2026-06-05 16:05:32 +08:00
parent c5288f397d
commit 33d04a5545
10 changed files with 267 additions and 147 deletions
+17 -7
View File
@@ -31,8 +31,8 @@ class ReportCardWidget extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Wrap(
spacing: WiseSpacing.x2,
runSpacing: WiseSpacing.x2,
spacing: hero ? WiseSpacing.x2 : 7,
runSpacing: hero ? WiseSpacing.x2 : 7,
children: [
AppBadge(text: report.interpretationLabel, kind: BadgeKind.brand),
if (report.hasAudio)
@@ -46,27 +46,32 @@ class ReportCardWidget extends StatelessWidget {
for (final topic in report.topics.take(3)) AppBadge(text: topic),
],
),
const SizedBox(height: WiseSpacing.x3),
SizedBox(height: hero ? WiseSpacing.x3 : 10),
Text(
report.titleCn,
maxLines: hero ? 3 : 2,
overflow: TextOverflow.ellipsis,
style: hero
? YantingText.sectionTitle.copyWith(fontSize: 21, height: 1.4)
: YantingText.cardTitle,
: YantingText.listTitle.copyWith(
fontSize: 17.5,
height: 1.38,
fontWeight: FontWeight.w700,
),
),
if (report.oneLiner.isNotEmpty) ...[
const SizedBox(height: WiseSpacing.x2),
SizedBox(height: hero ? WiseSpacing.x2 : 7),
Text(
report.oneLiner,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: YantingText.body.copyWith(
color: YantingColors.mutedForeground,
fontSize: hero ? null : 14,
),
),
],
const SizedBox(height: WiseSpacing.x3),
SizedBox(height: hero ? WiseSpacing.x3 : 10),
Wrap(
crossAxisAlignment: WrapCrossAlignment.center,
spacing: 8,
@@ -96,6 +101,7 @@ class ReportCardWidget extends StatelessWidget {
label: '听研报',
icon: AppIcons.play,
kind: hero ? AppButtonKind.primary : AppButtonKind.accent,
compact: !hero,
onPressed: onPlayTap,
),
],
@@ -103,7 +109,11 @@ class ReportCardWidget extends StatelessWidget {
);
return hero
? HeroReportCard(onTap: onTap, child: child)
: AppCard(onTap: onTap, child: child);
: AppCard(
onTap: onTap,
padding: const EdgeInsets.all(16),
child: child,
);
}
}