flutter_ajanuw_android_pip

Set picture-in-picture mode on Android

<activity 
  android:resizeableActivity="true" 
  android:supportsPictureInPicture="true" 
  ...

see: https://developer.android.com/guide/topics/ui/picture-in-picture

Install

dependencies:
  flutter_ajanuw_android_pip:

use

import 'package:flutter_ajanuw_android_pip/flutter_ajanuw_android_pip.dart';


 FlutterAndroidPip.pip();

 // or
 FlutterAndroidPip.pip(aspectRatio: PipRational(1, 1));

Libraries

flutter_ajanuw_android_pip