Explorar o código

Properly set full screen state when exiting.

Ben Hagen %!s(int64=6) %!d(string=hai) anos
pai
achega
cd20458e8e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      lib/src/chewie_player.dart

+ 2 - 0
lib/src/chewie_player.dart

@@ -117,6 +117,8 @@ class ChewieState extends State<Chewie> {
     }
 
     await Navigator.of(context).push(route);
+    _isFullScreen = false;
+    widget.controller.exitFullscreen();
 
     bool isKeptOn = await Screen.isKeptOn;
     if (isKeptOn) {