simple_pip_mode_flutter icon indicating copy to clipboard operation
simple_pip_mode_flutter copied to clipboard

Add ability to disable auto pip mode

Open tommyxchow opened this issue 2 years ago • 0 comments

First of all, thank you for the awesome package! Best implementation of PiP for Flutter/Android I've seen so far.

One issue I came across was there isn't a way to globally disable autoEnter (setAutoEnterEnabled). This meant that once I called setAutoPipMode, auto PiP would be enabled for the rest of the app's lifetime. As a result, the entire app goes into PiP mode from any screen when leaving the app.

In this PR, I've simply modified setAutoPipMode to allow the autoEnter parameter to be passed, just like how it is in enterPipMode. May not be the best solution, but it was the first one I could think of.

tommyxchow avatar Dec 28 '22 06:12 tommyxchow