1 min readApr 24, 2020
You can wrap the scaffold which is calling the video player in WillPopScope
and if there is any overlay present you can call
you can check for `overlayActive` which is in `OverlayHandlerProvider`
Provider.of<OverlayHandlerProvider>(context, listen: false).enablePip(aspectRatio);