d3xvn/easy_pip
Flutter용 Picture-In-Picture 인터페이스를 구성하기 위한 패키지
- Stars
- 22
- Forks
- 9
- 최근 푸시(UTC)
- 2021. 11. 11.
- 프로젝트 상태
- 활성
기술 주제
사용 중인 의존성
의존성 목록 2 개
- flutter
{"sdk":"flutter"} - flutter_test개발 의존성
{"sdk":"flutter"}
원본 README
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
README 펼치기 / 접기
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:
- Background Widget (Displays behind the pip widget)
- PIP Widget (The widget which shrinks to go into PIP mode)
- 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.