Skip to content

Commit

Permalink
use coloredbox instead
Browse files Browse the repository at this point in the history
  • Loading branch information
orz12 committed Jul 23, 2024
1 parent ad0aad3 commit 6f75123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pages/video/detail/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
() => !videoDetailController.autoPlay.value ||
plPlayerController == null ||
plPlayerController!.videoController == null
? nil
? const ColoredBox(color: Colors.black)
: PLVideoPlayer(
key: Key("${heroTag}PLVideoPlayer"),
controller: plPlayerController!,
Expand All @@ -416,7 +416,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
),
);
} else {
return const SizedBox();
return const ColoredBox(color: Colors.black);
}
});
Widget manualPlayerWidget = Obx(
Expand Down

0 comments on commit 6f75123

Please sign in to comment.