easy_pip 0.1.0 copy "easy_pip: ^0.1.0" to clipboard
easy_pip: ^0.1.0 copied to clipboard

A widget for creating a YouTube like Picture-In-Picture interface in Flutter.

easy_pip #

A widget for creating a Picture-In-Picture interface in Flutter. Note that this is not a plugin for enabling the PIP mode in Android. EasyPIP makes it easy to construct a YouTube like interface in Flutter.

Usage #

Import the package #

To use this package, add easy_pip as a dependency in your pubspec.yaml

Use the package #

import 'package:easy_pip/easy_pip.dart';

The main widget to use is PIPStack.

The PIPStack has three elements:

  1. Background Widget (Displays behind the pip widget)
  2. PIP Widget (The widget which shrinks to go into PIP mode)
  3. PIP Expanded Content (The content below the PIP widget when the widget is expanded)

Important: The pipEnabled field needs to be set to 'true' to make the pipWindow visible.

Note: If the pipExpandedContent field is left blank, the pipWidget will fill the entire screen when expanded.

Taking an analogy of the YouTube app:

The backgroundWidget would be the master list of all videos.

The pipWidget would be the video player which would be shrinkable and expandable.

The pipExpandedContent would be the list of recommended videos.

Getting Started #

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

39
likes
40
points
20
downloads

Publisher

verified publisherjoshi.dev

Weekly Downloads

A widget for creating a YouTube like Picture-In-Picture interface in Flutter.

Repository

License

BSD-2-Clause (license)

Dependencies

flutter

More

Packages that depend on easy_pip