From e028ca40b19212e0da163677d7f992855ed48539 Mon Sep 17 00:00:00 2001 From: Vicky <10212746+haifeng-jiang@user.noreply.gitee.com> Date: Tue, 27 Oct 2026 13:35:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E7=BB=9F=E4=B8=80=E6=92=AD=E6=94=BE?= =?UTF-8?q?=E9=A1=B5=E5=8F=B3=E4=BE=A7=E6=93=8D=E4=BD=9C=E6=A0=8F=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F=E4=B8=BA=E6=94=B6=E8=97=8F-=E7=82=B9=E8=B5=9E-?= =?UTF-8?q?=E8=AF=84=E8=AE=BA-=E5=88=86=E4=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 与推荐页操作栏保持一致,同步更新布局断言。 --- lib/pages/player/widgets/player_overlay.dart | 16 ++++++++-------- test/player/player_fullscreen_test.dart | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/pages/player/widgets/player_overlay.dart b/lib/pages/player/widgets/player_overlay.dart index 561f486..a89f284 100644 --- a/lib/pages/player/widgets/player_overlay.dart +++ b/lib/pages/player/widgets/player_overlay.dart @@ -178,14 +178,6 @@ class PlayerPlaybackOverlay extends StatelessWidget { selected: data.saved, onTap: actions.onSave, ), - InteractionRailItem( - key: const Key('player-rail-comments'), - asset: 'assets/icon/rail/rail_comment.png', - label: data.l10n.comments, - count: data.commentCount, - countKey: const Key('player-rail-comments-count'), - onTap: actions.onComments, - ), InteractionRailItem( key: const Key('player-rail-like'), asset: 'assets/icon/rail/rail_like.png', @@ -196,6 +188,14 @@ class PlayerPlaybackOverlay extends StatelessWidget { selectedColor: AppColors.doubleTapHeartRed, onTap: actions.onLike, ), + InteractionRailItem( + key: const Key('player-rail-comments'), + asset: 'assets/icon/rail/rail_comment.png', + label: data.l10n.comments, + count: data.commentCount, + countKey: const Key('player-rail-comments-count'), + onTap: actions.onComments, + ), InteractionRailItem( key: const Key('player-rail-share'), asset: 'assets/icon/rail/rail_share.png', diff --git a/test/player/player_fullscreen_test.dart b/test/player/player_fullscreen_test.dart index dbf9662..1b73b56 100644 --- a/test/player/player_fullscreen_test.dart +++ b/test/player/player_fullscreen_test.dart @@ -1359,9 +1359,9 @@ void main() { final shareRect = tester.getRect( find.byKey(const Key('player-rail-share')), ); - expect(commentsRect.top - saveRect.bottom, closeTo(24, 0.1)); - expect(likeRect.top - commentsRect.bottom, closeTo(24, 0.1)); - expect(shareRect.top - likeRect.bottom, closeTo(24, 0.1)); + expect(likeRect.top - saveRect.bottom, closeTo(24, 0.1)); + expect(commentsRect.top - likeRect.bottom, closeTo(24, 0.1)); + expect(shareRect.top - commentsRect.bottom, closeTo(24, 0.1)); final saveButton = tester.widget( find.descendant(