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 showProgressBar = true,
- Color progressBarColor = Colors.red,
- Color progressBarBackgroundColor = Colors.grey,
- double progressBarHeight = 3.0,
- bool snapToEdges = true,
- double snapThreshold = 64.0,
- bool allowDrag = true,
- bool allowExpand = true,
- bool showBackdropWhenExpanded = false,
- Color backdropColor = Colors.black54,
- bool showTitle = true,
- bool isReelsMode = false,
- TextStyle titleStyle = const TextStyle(color: Colors.white, fontSize: 14.0, fontWeight: FontWeight.w500),
- bool showControls = true,
- double controlsHeight = 48.0,
- Color controlsBackgroundColor = Colors.black87,
- double reelsWidth = 30,
- double reelsHeight = 100,
- double reelsSliderSize = 25,
- Color reelsBackgroundColor = Colors.black45,
- Color reelsSliderColor = Colors.white,
- IconData reelsSliderIcon = Icons.drag_handle,
- Color reelsSliderIconColor = Colors.black,
- double reelsDragSensitivity = 50.0,
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.showProgressBar = true,
this.progressBarColor = Colors.red,
this.progressBarBackgroundColor = Colors.grey,
this.progressBarHeight = 3.0,
this.snapToEdges = true,
this.snapThreshold = 64.0,
this.allowDrag = true,
this.allowExpand = true,
this.showBackdropWhenExpanded = false,
this.backdropColor = Colors.black54,
this.showTitle = true,
this.isReelsMode = false,
this.titleStyle = const TextStyle(
color: Colors.white,
fontSize: 14.0,
fontWeight: FontWeight.w500,
),
this.showControls = true,
this.controlsHeight = 48.0,
this.controlsBackgroundColor = Colors.black87,
this.reelsWidth = 30,
this.reelsHeight = 100,
this.reelsSliderSize = 25,
this.reelsBackgroundColor = Colors.black45,
this.reelsSliderColor = Colors.white,
this.reelsSliderIcon = Icons.drag_handle,
this.reelsSliderIconColor = Colors.black,
this.reelsDragSensitivity = 50.0,
});