fl_pip 2.0.0 copy "fl_pip: ^2.0.0" to clipboard
fl_pip: ^2.0.0 copied to clipboard

A picture-in-picture plugin for android and ios that can display any flutter view

example/lib/main.dart

import 'package:example/main_app.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData.light(useMaterial3: true),
      darkTheme: ThemeData.dark(useMaterial3: true),
      home: const MainApp()));
}

/// mainName must be the same as the method name
@pragma('vm:entry-point')
void pipMain() {
  runApp(ClipRRect(
    borderRadius: BorderRadius.circular(12),
    child: MaterialApp(
        debugShowCheckedModeBanner: false,
        theme: ThemeData.light(useMaterial3: true),
        darkTheme: ThemeData.dark(useMaterial3: true),
        home: const PiPMainApp()),
  ));
}
43
likes
160
pub points
89%
popularity

Publisher

unverified uploader

A picture-in-picture plugin for android and ios that can display any flutter view

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on fl_pip