PipSettings constructor
const
PipSettings({
- double collapsedWidth = 160.0,
- double collapsedHeight = 90.0,
- double expandedWidth = 320.0,
- double expandedHeight = 240.0,
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(12.0)),
- EdgeInsets screenPadding = const EdgeInsets.all(16.0),
- Duration animationDuration = const Duration(milliseconds: 250),
- Curve animationCurve = Curves.easeOutCubic,
- Color backgroundColor = Colors.black,
- Color shadowColor = const Color.fromARGB(255, 196, 196, 196),
- double elevation = 8.0,
- Offset offset = const Offset(0, 0),
- bool showDragHandle = true,
- Color dragHandleColor = Colors.white60,
- bool showCloseButton = true,
- Color closeButtonColor = Colors.white,
- bool showExpandButton = true,
- Color expandButtonColor = Colors.white,
- bool snapToEdges = true,
- double snapThreshold = 64.0,
- bool allowDrag = true,
- bool allowExpand = true,
- bool showBackdropWhenExpanded = false,
- Color backdropColor = Colors.black54,
- Color controlsBackgroundColor = Colors.black87,
Creates a new PipSettings
Implementation
const PipSettings({
this.collapsedWidth = 160.0,
this.collapsedHeight = 90.0,
this.expandedWidth = 320.0,
this.expandedHeight = 240.0,
this.borderRadius = const BorderRadius.all(Radius.circular(12.0)),
this.screenPadding = const EdgeInsets.all(16.0),
this.animationDuration = const Duration(milliseconds: 250),
this.animationCurve = Curves.easeOutCubic,
this.backgroundColor = Colors.black,
this.shadowColor = const Color.fromARGB(255, 196, 196, 196),
this.elevation = 8.0,
this.offset = const Offset(0, 0),
this.showDragHandle = true,
this.dragHandleColor = Colors.white60,
this.showCloseButton = true,
this.closeButtonColor = Colors.white,
this.showExpandButton = true,
this.expandButtonColor = Colors.white,
this.snapToEdges = true,
this.snapThreshold = 64.0,
this.allowDrag = true,
this.allowExpand = true,
this.showBackdropWhenExpanded = false,
this.backdropColor = Colors.black54,
this.controlsBackgroundColor = Colors.black87,
});