floating 0.1.1 copy "floating: ^0.1.1" to clipboard
floating: ^0.1.1 copied to clipboard

PlatformAndroid
outdated

Picture in Picture mode management for Flutter. Available only for Android since web and iOS does not natively support such mode.

floating #

Picture in Picture management for Flutter. Android only

Picture in picture demo

API #

PiP mode in desired mode is available only in Android so iOS and web support is not planned until the platforms adds native support for such feature.

Check if PiP is available #

final canUsePiP = await Floating.isPipAvailable;

PiP may be unavailable because of system settings managed by admin or device manufacturer. Also, the device may have Android version that was released without this feature.

Check if app is in PiP mode #

final isPiP = await Floating.isInPipMode;

When false the app can call Floating.enablePip() method. When the app is already in PiP mode user will have an option to bring the app to it's original size via system UI.

Enable PiP mode #

final enabled = await Floating.enablePip();

When enabled, PiP mode can be ended by the user via system UI.

151
likes
140
pub points
92%
popularity

Publisher

verified publisherwrbl.xyz

Picture in Picture mode management for Flutter. Available only for Android since web and iOS does not natively support such mode.

Repository (GitLab)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on floating