Skip to content

Commit

Permalink
fix issue when video goes full screen
Browse files Browse the repository at this point in the history
  • Loading branch information
lamarios committed Feb 16, 2023
1 parent d11ae6e commit cd933f9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/views/video/player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ class _VideoPlayerState extends State<VideoPlayer> with AfterLayoutMixin<VideoPl
void didPushNext() {
// if we navigate up to a new screen, we stop playing
super.didPushNext();
if (videoController != null) {
videoController!.removeEventsListener(onVideoListener);
videoController!.dispose();
}
setState(() {
playingVideo = false;
});
// if (videoController != null) {
// videoController!.removeEventsListener(onVideoListener);
// videoController!.dispose();
// }
// setState(() {
// playingVideo = false;
// });
}

@override
Expand Down

0 comments on commit cd933f9

Please sign in to comment.