Revert "merge: 合并 K95.2 首切频道封面过渡"
This reverts commita2a491d056, reversing changes made to838ca2ce2a.
This commit is contained in:
1 parent
a2a491d056
commit
f8769f2e1d
5 files changed
+19
-111
No files matched your search
@@ -131,12 +131,18 @@ void main() {
|
||||
expect(player.playing, isTrue);
|
||||
});
|
||||
|
||||
testWidgets('should_show_poster_before_video_first_frame', (tester) async {
|
||||
testWidgets('should_keep_video_surface_background_black', (tester) async {
|
||||
await _pumpApp(tester);
|
||||
await _openSeriesPlayer(tester);
|
||||
|
||||
expect(find.byKey(const Key('player-video-poster')), findsOneWidget);
|
||||
expect(find.byKey(const Key('player-fallback-background')), findsNothing);
|
||||
expect(
|
||||
tester
|
||||
.widget<ColoredBox>(
|
||||
find.byKey(const Key('player-fallback-background')),
|
||||
)
|
||||
.color,
|
||||
Colors.black,
|
||||
);
|
||||
expect(find.byKey(const Key('player-fallback-cover')), findsNothing);
|
||||
expect(find.byKey(const Key('player-fallback-scrim')), findsNothing);
|
||||
});
|
||||
@@ -465,8 +471,9 @@ void main() {
|
||||
find.byKey(const Key('player-interaction-rail')),
|
||||
);
|
||||
expect(find.byKey(const Key('player-background')), findsNothing);
|
||||
expect(find.byKey(const Key('player-video-poster')), findsOneWidget);
|
||||
expect(find.byKey(const Key('player-fallback-background')), findsNothing);
|
||||
final fallback = find.byKey(const Key('player-fallback-background'));
|
||||
expect(fallback, findsOneWidget);
|
||||
expect(tester.widget<ColoredBox>(fallback).color, Colors.black);
|
||||
expect(find.byKey(const Key('player-fallback-cover')), findsNothing);
|
||||
expect(find.byKey(const Key('player-fallback-scrim')), findsNothing);
|
||||
expect(
|
||||
|
||||
Reference in new issue
Block a user