fix(player): 收紧推荐页互动栏间距

This commit is contained in:
Zhou Weidong committed 2026-10-27 09:37:00 +08:00
1 parent d3dbc9f8dc
commit 4c3acb047c
5 files changed
+34 -32

No files matched your search

@@ -305,7 +305,6 @@ class HomeFeedActionRail extends StatelessWidget {
required this.onSave,
required this.onLike,
required this.onComments,
required this.onShare,
required this.onEpisodes,
this.favoriteCount,
this.likeCount,
@@ -320,13 +319,13 @@ class HomeFeedActionRail extends StatelessWidget {
final VoidCallback onSave;
final VoidCallback onLike;
final VoidCallback onComments;
final VoidCallback onShare;
final VoidCallback onEpisodes;
@override
Widget build(BuildContext context) {
final l10n = AppLocalizations.of(context)!;
return InteractionRail(
itemGap: 14,
items: [
InteractionRailItem(
key: const Key('rail-save'),
@@ -337,14 +336,6 @@ class HomeFeedActionRail extends StatelessWidget {
selected: saved,
onTap: onSave,
),
InteractionRailItem(
key: const Key('rail-comments'),
asset: 'assets/icon/rail/rail_comment.png',
label: l10n.comments,
count: commentCount,
countKey: const Key('rail-comments-count'),
onTap: onComments,
),
InteractionRailItem(
key: const Key('rail-like'),
asset: 'assets/icon/rail/rail_like.png',
@@ -356,10 +347,12 @@ class HomeFeedActionRail extends StatelessWidget {
onTap: onLike,
),
InteractionRailItem(
key: const Key('rail-share'),
asset: 'assets/icon/rail/rail_share.png',
label: l10n.share,
onTap: onShare,
key: const Key('rail-comments'),
asset: 'assets/icon/rail/rail_comment.png',
label: l10n.comments,
count: commentCount,
countKey: const Key('rail-comments-count'),
onTap: onComments,
),
InteractionRailItem(
key: const Key('rail-episodes'),