flutter_in_app_pip
1.7.5, released 8 months ago by an unverified publisher
Provides in-app Picture-in-Picture support with customizable widget
What it does
This package lets you start a PiP window inside a Flutter app, with options for navigation, resizing, moving, and custom borders. It replaces the standard MaterialApp with PiPMaterialApp to manage PiP state.
AI-written summary of version 1.7.5, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need Picture-in-Picture functionality in a Flutter app
- You want navigation inside the PiP window
- You need to customize PiP size, position, or borders
- You want to control PiP lifecycle events
Skip it when
- You are building a web-only app that does not support PiP
- You already have a custom PiP implementation that handles all required features
Strengths
- Easy integration by swapping MaterialApp
- Supports navigation inside PiP
- Highly customizable size, position, and appearance
- Stable across Android, iOS, web, and desktop
Weaknesses
- Limited documentation on web behavior
- No support for native platform-specific PiP APIs beyond Flutter
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Replace MaterialApp with PiPMaterialApp or PiPMaterialApp.router and call PictureInPicture.startPiP(pipWidget: YourWidget());
```dart
import 'package:flutter_in_app_pip/flutter_in_app_pip.dart';
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return PiPMaterialApp(
home: Scaffold(
appBar: AppBar(title: Text('PiP Demo')),
body: Center(
child: ElevatedButton(
onPressed: () {
PictureInPicture.startPiP(pipWidget: MyPiPWidget());
},
child: Text('Start PiP'),
),
),
),
);
}
}
```Alternatives
Packages that do the same job and could replace flutter_in_app_pip.
- flutter_speed_dial
Flutter plugin to implement a Material Design Speed Dial with labels and animated icons.
92Compare - flutter_smart_dialog
An elegant Flutter dialog, toast, and loading solution without needing BuildContext.
91Compare - calendar_view
A Flutter package providing multiple calendar views and event management functionality.
83Compare - custom_refresh_indicator
Widget that makes it easy to implement a custom pull to refresh gesture.
81Compare