PipExpanded constructor
const
PipExpanded({
- required CampaignCanvas canvas,
- double designWidth = defaultCampaignCanvasDesignWidth,
- bool cover = true,
- Color? backgroundColor,
- double scrimOpacity = 0.55,
- bool showCloseButton = true,
- bool closeOnLeft = false,
- PipExpandedClose onClose = PipExpandedClose.collapse,
- PipExpandedClose onBack = PipExpandedClose.collapse,
- bool showPlaybackControls = false,
- bool showMute = true,
- bool unmuteOnExpand = false,
- Duration transition = const Duration(milliseconds: 500),
- double iconSize = 20,
- PipEdges controlsMargin = const PipEdges(top: 4, right: 12, bottom: 0, left: 12),
Implementation
const PipExpanded({
required this.canvas,
this.designWidth = defaultCampaignCanvasDesignWidth,
this.cover = true,
this.backgroundColor,
this.scrimOpacity = 0.55,
this.showCloseButton = true,
this.closeOnLeft = false,
this.onClose = PipExpandedClose.collapse,
this.onBack = PipExpandedClose.collapse,
this.showPlaybackControls = false,
this.showMute = true,
this.unmuteOnExpand = false,
this.transition = const Duration(milliseconds: 500),
this.iconSize = 20,
this.controlsMargin =
const PipEdges(top: 4, right: 12, bottom: 0, left: 12),
});