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(