fix(player): 重构单层过渡并阻止锁定集串播
This commit is contained in:
1 parent
70d8e0f982
commit
0cb0ab0613
8 files changed
+657
-335
No files matched your search
@@ -1031,6 +1031,14 @@ void main() {
|
||||
await _pumpApp(
|
||||
tester,
|
||||
catalog: FakeCatalogRepository(dramas: const [_lockedDrama]),
|
||||
playback: FakePlaybackRepository(
|
||||
ticket: const PlayTicket(
|
||||
episodeId: 'locked-demo-1',
|
||||
accessible: false,
|
||||
accessType: PlayTicket.coinRequired,
|
||||
unlockCoin: 30,
|
||||
),
|
||||
),
|
||||
);
|
||||
await _openSeriesPlayer(
|
||||
tester,
|
||||
@@ -1040,6 +1048,9 @@ void main() {
|
||||
expect(find.byKey(const Key('progress-loading-highlight')), findsNothing);
|
||||
expect(find.byKey(const Key('progress-inactive')), findsOneWidget);
|
||||
expect(find.byType(Slider), findsNothing);
|
||||
expect(find.byKey(const Key('player-single-placeholder')), findsNothing);
|
||||
expect(find.byKey(const Key('player-video-crossfade')), findsNothing);
|
||||
expect(find.byKey(const Key('player-video-layer')), findsNothing);
|
||||
expect(
|
||||
tester
|
||||
.widget<SeekProgressBar>(find.byKey(const Key('player-progress')))
|
||||
|
||||
Reference in new issue
Block a user