fix(home): 频道切换用封面过渡
This commit is contained in:
1 parent
838ca2ce2a
commit
c9adf8b399
5 files changed
+111
-19
No files matched your search
@@ -131,18 +131,12 @@ void main() {
|
||||
expect(player.playing, isTrue);
|
||||
});
|
||||
|
||||
testWidgets('should_keep_video_surface_background_black', (tester) async {
|
||||
testWidgets('should_show_poster_before_video_first_frame', (tester) async {
|
||||
await _pumpApp(tester);
|
||||
await _openSeriesPlayer(tester);
|
||||
|
||||
expect(
|
||||
tester
|
||||
.widget<ColoredBox>(
|
||||
find.byKey(const Key('player-fallback-background')),
|
||||
)
|
||||
.color,
|
||||
Colors.black,
|
||||
);
|
||||
expect(find.byKey(const Key('player-video-poster')), findsOneWidget);
|
||||
expect(find.byKey(const Key('player-fallback-background')), findsNothing);
|
||||
expect(find.byKey(const Key('player-fallback-cover')), findsNothing);
|
||||
expect(find.byKey(const Key('player-fallback-scrim')), findsNothing);
|
||||
});
|
||||
@@ -471,9 +465,8 @@ void main() {
|
||||
find.byKey(const Key('player-interaction-rail')),
|
||||
);
|
||||
expect(find.byKey(const Key('player-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-video-poster')), findsOneWidget);
|
||||
expect(find.byKey(const Key('player-fallback-background')), findsNothing);
|
||||
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