Skip to content

Commit

Permalink
Properly set full screen state when exiting.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbenhagen committed Jan 23, 2019
1 parent fc1bc16 commit cd20458
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/chewie_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cd20458

Please sign in to comment.