diff --git a/lib/mpv/video/video.dart b/lib/mpv/video/video.dart index 50bd7d43..f616a31e 100644 --- a/lib/mpv/video/video.dart +++ b/lib/mpv/video/video.dart @@ -14,7 +14,6 @@ import '../player/video_rect_support.dart'; /// /// Video( /// player: player, -/// fit: BoxFit.contain, /// controls: (context) => MyCustomControls(), /// ) /// ``` @@ -22,9 +21,6 @@ class Video extends StatefulWidget { /// The player instance. final Player player; - /// How the video should be inscribed into the widget's box. - final BoxFit fit; - /// Builder for custom video controls overlay. final Widget Function(BuildContext context)? controls; @@ -34,7 +30,6 @@ class Video extends StatefulWidget { const Video({ super.key, required this.player, - this.fit = BoxFit.contain, this.controls, this.backgroundColor = Colors.black, }); diff --git a/lib/screens/video_player_screen.dart b/lib/screens/video_player_screen.dart index d4599713..6e5b3742 100644 --- a/lib/screens/video_player_screen.dart +++ b/lib/screens/video_player_screen.dart @@ -1260,7 +1260,6 @@ class VideoPlayerScreenState extends State return Video( player: player!, - fit: _videoFilterManager?.currentBoxFit ?? BoxFit.contain, controls: (context) => plexVideoControlsBuilder( player!, widget.metadata, diff --git a/lib/services/video_filter_manager.dart b/lib/services/video_filter_manager.dart index fd59ad4a..792f78ee 100644 --- a/lib/services/video_filter_manager.dart +++ b/lib/services/video_filter_manager.dart @@ -49,20 +49,6 @@ class VideoFilterManager { /// Current player size Size? get playerSize => _playerSize; - /// Get current BoxFit based on mode - BoxFit get currentBoxFit { - switch (_boxFitMode) { - case 0: - return BoxFit.contain; - case 1: - return BoxFit.cover; - case 2: - return BoxFit.fill; - default: - return BoxFit.contain; - } - } - /// Cycle through BoxFit modes: contain → cover → fill → contain (for button) void cycleBoxFitMode() { _boxFitMode = (_boxFitMode + 1) % 3;