fix(flutter): 清屏态进度可拖动并长按恢复播放

This commit is contained in:
Zhou Weidong committed 2026-10-20 14:38:09 +08:00
1 parent 8327c1dd13
commit b2c219d6bd
3 files changed
+103 -9

No files matched your search

+22
View File
@@ -178,6 +178,28 @@ void main() {
expect(find.byKey(const Key('rail-save')), findsOneWidget);
});
testWidgets('should_resume_playback_when_boosting_while_paused', (
tester,
) async {
await _pumpApp(tester);
await tester.tap(find.byKey(const Key('home-feed-video-toggle')));
await tester.pump();
expect(find.byKey(const Key('home-feed-center-play')), findsOneWidget);
final gesture = await tester.startGesture(const Offset(60, 300));
await tester.pump(const Duration(milliseconds: 700));
await tester.pump();
expect(find.byKey(const Key('home-feed-speed-boost-hint')), findsOneWidget);
expect(find.textContaining('2.0'), findsWidgets);
expect(find.byKey(const Key('home-feed-center-play')), findsNothing);
await gesture.up();
await tester.pumpAndSettle();
expect(find.byKey(const Key('home-feed-speed-boost-hint')), findsNothing);
expect(find.byKey(const Key('home-feed-center-play')), findsNothing);
});
testWidgets('should_open_more_sheet_on_center_long_press', (tester) async {
await _pumpApp(tester);