Ver código fonte

Properly set full screen state when exiting.

Ben Hagen 6 anos atrás
pai
commit
cd20458e8e
1 arquivos alterados com 2 adições e 0 exclusões
  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) {