Open J-Dark opened 2 years ago
me too, Is there a solution?
I used the following code and it seems to be solved 🤔
bool isInit = true;
chewieController.addListener(() {
var isFullScreen = chewieController.isFullScreen;
if (isFullScreen && isInit) {
chewieController.exitFullScreen();
setState(() {
isInit = false;
});
}
});
fullScreenByDefault: true
triggers the fullscreen again the first time you exit fullscreen. I'm using Navigator 2.0 (using Routemaster package) and maybe its related to #618. You can find a repo to reproduce the bug in this comment: https://github.com/fluttercommunity/chewie/issues/618#issuecomment-1156713212