Browse Source

Properly set full screen state when exiting.

Ben Hagen 6 năm trước cách đây
mục cha
commit
cd20458e8e
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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) {