From ccf8a786ebd9c8edabb8e4e70cae9014f91201dc Mon Sep 17 00:00:00 2001 From: andrezanna Date: Thu, 13 Feb 2025 10:54:17 +0100 Subject: [PATCH 1/2] added variable enableOverlay --- lib/src/models/pod_player_config.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/models/pod_player_config.dart b/lib/src/models/pod_player_config.dart index f44c7918..4e9e5990 100644 --- a/lib/src/models/pod_player_config.dart +++ b/lib/src/models/pod_player_config.dart @@ -3,6 +3,7 @@ class PodPlayerConfig { final bool isLooping; final bool forcedVideoFocus; final bool wakelockEnabled; + final bool enableOverlay; /// Initial video quality priority. The first available option will be used, /// from start to the end of this list. If all options informed are not @@ -16,6 +17,7 @@ class PodPlayerConfig { this.isLooping = false, this.forcedVideoFocus = false, this.wakelockEnabled = true, + this.enableOverlay = true, this.videoQualityPriority = const [1080, 720, 360], }); @@ -24,6 +26,7 @@ class PodPlayerConfig { bool? isLooping, bool? forcedVideoFocus, bool? wakelockEnabled, + bool? enableOverlay, List? videoQualityPriority, }) { return PodPlayerConfig( @@ -32,6 +35,7 @@ class PodPlayerConfig { forcedVideoFocus: forcedVideoFocus ?? this.forcedVideoFocus, wakelockEnabled: wakelockEnabled ?? this.wakelockEnabled, videoQualityPriority: videoQualityPriority ?? this.videoQualityPriority, + enableOverlay: enableOverlay ?? this.enableOverlay, ); } } From ab101654f9857bf01e534e9091200d015e2efc55 Mon Sep 17 00:00:00 2001 From: andrezanna Date: Thu, 13 Feb 2025 10:56:07 +0100 Subject: [PATCH 2/2] added enableOverlay check --- lib/src/widgets/core/overlays/mobile_overlay.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/widgets/core/overlays/mobile_overlay.dart b/lib/src/widgets/core/overlays/mobile_overlay.dart index 1afe558d..7676c644 100644 --- a/lib/src/widgets/core/overlays/mobile_overlay.dart +++ b/lib/src/widgets/core/overlays/mobile_overlay.dart @@ -61,6 +61,7 @@ class _MobileOverlay extends StatelessWidget { child: podCtr.videoTitle ?? const SizedBox(), ), ), + if(podCtr.podPlayerConfig.enableOverlay) MaterialIconButton( toolTipMesg: podCtr.podPlayerLabels.settings, color: itemColor,