Skip to content
On this page

PipPlayer

A media player with picture-in-picture support.

PipPlayer in FluttyUIPipPlayer in FluttyUI dark theme

Import

import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;

API Reference

The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.

PipPlayer

const PipPlayer({
  super.key,
  required this.child,
  this.controller,
  this.enabled = true,
  this.autoEnter = true,
  this.inApp = false,
  this.inAppWidth = 200,
  this.inAppMargin = const EdgeInsets.all(16),
  this.inAppBorderRadius = 12,
  this.onRestore,
  this.onClose,
  this.onChanged,
  this.onError,
});
ParameterTypeRequiredDefault
keyKey?Nonull
childVideoPlayerYes—
controllerPipPlayerController?Nonull
enabledboolNotrue
autoEnterboolNotrue
inAppboolNofalse
inAppWidthdoubleNo200
inAppMarginEdgeInsetsNoconst EdgeInsets.all(16)
inAppBorderRadiusdoubleNo12
onRestoreVoidCallback?Nonull
onCloseVoidCallback?Nonull
onChangedValueChanged<PipState>?Nonull
onErrorValueChanged<PlatformException>?Nonull

Application Setup

Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.

Source

lib/src/widgets/media/pip_player/pip_player.dart

This reference is generated from the PipPlayer declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI