flutter_ajanuw_android_pip 0.1.2

Flutter Android

Set picture-in-picture mode on Android

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));