We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 43ab7d6 + 366a896 commit dbd5e8bCopy full SHA for dbd5e8b
lib/src/chewie_player.dart
@@ -168,9 +168,9 @@ class ChewieState extends State<Chewie> {
168
_isFullScreen = false;
169
widget.controller.exitFullScreen();
170
171
- // The wakelock plugins checks whether it needs to perform an action internally,
172
- // so we do not need to check WakelockPlus.isEnabled.
173
- WakelockPlus.disable();
+ if (!widget.controller.allowedScreenSleep) {
+ WakelockPlus.disable();
+ }
174
175
SystemChrome.setEnabledSystemUIMode(
176
SystemUiMode.manual,
0 commit comments