diff --git a/lib/plugin/pl_player/view.dart b/lib/plugin/pl_player/view.dart index 9d602305..db114646 100644 --- a/lib/plugin/pl_player/view.dart +++ b/lib/plugin/pl_player/view.dart @@ -1114,8 +1114,10 @@ class _PLVideoPlayerState extends State () { final videoFit = plPlayerController.videoFit.value; return Video( - fill: widget.fill ?? Colors.black, key: key, + width: maxWidth, + height: maxHeight, + fill: widget.fill ?? Colors.black, alignment: widget.alignment ?? Alignment.center, controller: videoController, controls: NoVideoControls, diff --git a/pubspec.lock b/pubspec.lock index ac44d79e..18955432 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1225,7 +1225,7 @@ packages: description: path: media_kit_video ref: "version_1.2.5" - resolved-ref: "69fbf92def88d4304fc177fa4dd14664c0c2d8d5" + resolved-ref: "4785f3223ff04d86b1644ab114e3960723ddf7cd" url: "https://github.com/bggRGjQaUbCoE/media-kit.git" source: git version: "1.2.5"