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, ); } } 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,