PipControls class

Collapsed-state affordances.

Constructors

PipControls({bool draggable = true, bool snapToCorner = true, bool showClose = true, bool showMute = true, bool showPlayPause = false, bool showProgress = false, bool showExpand = true, bool showCollapse = true, double iconSize = 16, PipEdges margin = const PipEdges(top: 4, right: 4, bottom: 4, left: 4)})
const
PipControls.fromJson(Map<String, dynamic>? json)
factory

Properties

draggable bool
final
hashCode int
The hash code for this object.
no setterinherited
iconSize double
Diameter of a collapsed-window chrome glyph (×, expand, play/pause, mute), in logical pixels. The collapsed window has no authored content under its chrome (it is media-only), so unlike PipExpanded.iconSize this has no safe-zone/layout coupling to keep in sync — purely cosmetic. Default raised from the previous fixed 12 (_chromeIcon's old literal), which read as too small against a real device.
final
margin PipEdges
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showClose bool
The × itself is always top-right — see PipMutePlacement. This only controls whether it is drawn at all.
final
showCollapse bool
The collapse affordance in full screen. Turning it off leaves the back gesture as the only way back to the small window — and iOS has none, so a user there could then only dismiss.
final
showExpand bool
The expand affordance on the collapsed window. The surface is tappable regardless, so this controls discoverability, not capability.
final
showMute bool
final
showPlayPause bool
final
showProgress bool
final
snapToCorner bool
Snaps to one of the four corners on release.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited