PipExpanded constructor

const PipExpanded({
  1. required CampaignCanvas canvas,
  2. double designWidth = defaultCampaignCanvasDesignWidth,
  3. bool cover = true,
  4. Color? backgroundColor,
  5. double scrimOpacity = 0.55,
  6. bool showCloseButton = true,
  7. bool closeOnLeft = false,
  8. PipExpandedClose onClose = PipExpandedClose.collapse,
  9. PipExpandedClose onBack = PipExpandedClose.collapse,
  10. bool showPlaybackControls = false,
  11. bool showMute = true,
  12. bool unmuteOnExpand = false,
  13. Duration transition = const Duration(milliseconds: 500),
  14. double iconSize = 20,
  15. 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),
});