easy_pip
一個用於 Flutter 的套件,用來建構畫中畫介面
- 星標
- 22
- 分支
- 9
- 最近推送(UTC)
- 2021年11月11日
- 專案狀態
- 未封存
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
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.
分類
使用的依賴
依賴清單 2 項
- flutter
{"sdk":"flutter"} - flutter_test開發依賴
{"sdk":"flutter"}
如何選擇適合專案的儲存庫?
先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
- 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
- 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
- 使用前在 GitHub 確認 README、授權條款與 Issues。
來源與維護
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗