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,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
child | VideoPlayer | Yes | — |
controller | PipPlayerController? | No | null |
enabled | bool | No | true |
autoEnter | bool | No | true |
inApp | bool | No | false |
inAppWidth | double | No | 200 |
inAppMargin | EdgeInsets | No | const EdgeInsets.all(16) |
inAppBorderRadius | double | No | 12 |
onRestore | VoidCallback? | No | null |
onClose | VoidCallback? | No | null |
onChanged | ValueChanged<PipState>? | No | null |
onError | ValueChanged<PlatformException>? | No | null |
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.

