fluttercommunity / fluttercommunity/chewie

Unable to exit Fullscreen

Open
#297 15 comments 6 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
2.1k
Forks
1.1k
Avg merge
6d 8h
Merged PRs (30d)
6

Description

- After pressing the full-screen button, chewie navigates to a new route with the full screen widget, passing the Chewie-controller.
- But depending on where the Chewie widget was placed, the navigate push can trigger a dispose on the Chewie widget, and it will removes the listener.
- Now pressing on the full screen button can't go back since none is listening.

I am placing the Chewie widget inside a ListView builder, also I am currently caching the videoPlayerController and the ChewieController so that they do not get disposed when scrolling up and down and works great.
But as said above, navigating to Full screen does not, I am not sure if caching the Chewie widget is the right way to go?

Pressing the back button works, so can we move the `if full screen navigator pop`, somewhere in the FullScreen widget not inside Chewie widget?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.