Member-only story
Picture in Picture view in flutter
In this article we will discuss about how to add pip view in flutter.
⚒️ Dependencies
🎥 Video Tutorial
🔭 Implementation
PIPView
helps Widget to allow the presentation of a widget below a floating one. It supports moving the floating widget around which sticks to the corners.
→ #1 PIPView Widget
Wrap the top level widget using PIPView
widget, which we get as a result of installing the pip_view
package and call presentBelow()
method inside the onpress event of the button by passing the background screen as a parameter. (Background screen can be either a stateless or stateful widget)
class MyScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return PIPView(
builder…