From 033ae5987c109d91ffa4ec2b759c1ac222522eec Mon Sep 17 00:00:00 2001 From: Zhou Weidong <502333560@qq.com> Date: Tue, 20 Oct 2026 12:39:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(flutter):=20=E5=8A=A0=E9=80=9F=E6=80=81?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E5=BA=95=E9=83=A8=E9=80=89=E9=9B=86=E4=B8=8E?= =?UTF-8?q?=E6=B8=85=E5=B1=8F=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/player/widgets/player_overlay.dart | 3 ++- test/player/player_fullscreen_test.dart | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/pages/player/widgets/player_overlay.dart b/lib/pages/player/widgets/player_overlay.dart index dd64973..bcf586f 100644 --- a/lib/pages/player/widgets/player_overlay.dart +++ b/lib/pages/player/widgets/player_overlay.dart @@ -170,7 +170,8 @@ class PlayerPlaybackOverlay extends StatelessWidget { if (controlsVisible) _bottomInfo(context), if (data.boosting) _boostHint(), _bottomProgress(), - _bottomActions(), + // 加速态只保留进度条与提示,便于全屏快进时看清画面。 + if (!data.boosting) _bottomActions(), ], ), ); diff --git a/test/player/player_fullscreen_test.dart b/test/player/player_fullscreen_test.dart index f33334f..345d15a 100644 --- a/test/player/player_fullscreen_test.dart +++ b/test/player/player_fullscreen_test.dart @@ -184,6 +184,8 @@ void main() { expect(find.byKey(const Key('player-speed-boost-hint')), findsOneWidget); expect(find.byKey(const Key('player-progress')), findsOneWidget); + expect(find.byKey(const Key('player-episodes-pill')), findsNothing); + expect(find.byKey(const Key('player-bottom-clear-screen')), findsNothing); expect(find.byKey(const Key('player-interaction-rail')), findsNothing); expect(find.byKey(const Key('player-controls-bottom')), findsNothing); expect( @@ -200,6 +202,8 @@ void main() { await tester.pumpAndSettle(); expect(find.byKey(const Key('player-speed-boost-hint')), findsNothing); + expect(find.byKey(const Key('player-episodes-pill')), findsOneWidget); + expect(find.byKey(const Key('player-bottom-clear-screen')), findsOneWidget); expect(find.byKey(const Key('player-interaction-rail')), findsOneWidget); expect(find.byKey(const Key('player-controls-bottom')), findsOneWidget); expect( @@ -232,6 +236,8 @@ void main() { await tester.pump(const Duration(milliseconds: 700)); await tester.pump(); expect(find.byKey(const Key('player-speed-boost-hint')), findsOneWidget); + expect(find.byKey(const Key('player-episodes-pill')), findsNothing); + expect(find.byKey(const Key('player-bottom-clear-screen')), findsNothing); await gesture.up(); await tester.pumpAndSettle(); @@ -239,6 +245,9 @@ void main() { expect(find.byKey(const Key('player-speed-boost-hint')), findsNothing); expect(find.byKey(const Key('player-interaction-rail')), findsNothing); expect(find.byTooltip('Exit clear screen'), findsOneWidget); + // 清屏态本来显示的选集胶囊与右下按钮,在加速结束后恢复。 + expect(find.byKey(const Key('player-episodes-pill')), findsOneWidget); + expect(find.byKey(const Key('player-bottom-clear-screen')), findsOneWidget); expect( find.descendant( of: find.byKey(const Key('player-speed-entry')),