From c6178a7fd8f7f65efe50c8430de8118de9308d45 Mon Sep 17 00:00:00 2001 From: nixos script Date: Thu, 28 Sep 2023 14:50:09 +0800 Subject: [PATCH] add subtitle outline --- lib/player/states/video_player.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/player/states/video_player.dart b/lib/player/states/video_player.dart index a89c3cb3..5b551560 100644 --- a/lib/player/states/video_player.dart +++ b/lib/player/states/video_player.dart @@ -320,6 +320,9 @@ class VideoPlayerCubit extends MediaPlayerCubit { fit: fillVideo ? BoxFit.cover : BoxFit.contain, subtitlesConfiguration: BetterPlayerSubtitlesConfiguration( fontSize: settings.state.subtitleSize, + outlineEnabled: true, + outlineColor: Colors.black, + outlineSize: 1 ), controlsConfiguration: BetterPlayerControlsConfiguration(showControls: false // customControlsBuilder: (controller, onPlayerVisibilityChanged) => PlayerControls(mediaPlayerCubit: this),