PipSettings constructor

const PipSettings({
  1. double collapsedWidth = 160.0,
  2. double collapsedHeight = 90.0,
  3. double expandedWidth = 320.0,
  4. double expandedHeight = 240.0,
  5. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(12.0)),
  6. EdgeInsets screenPadding = const EdgeInsets.all(16.0),
  7. Duration animationDuration = const Duration(milliseconds: 250),
  8. Curve animationCurve = Curves.easeOutCubic,
  9. Color backgroundColor = Colors.black,
  10. Color shadowColor = const Color.fromARGB(255, 196, 196, 196),
  11. double elevation = 8.0,
  12. Offset offset = const Offset(0, 0),
  13. bool showDragHandle = true,
  14. Color dragHandleColor = Colors.white60,
  15. bool showCloseButton = true,
  16. Color closeButtonColor = Colors.white,
  17. bool showExpandButton = true,
  18. Color expandButtonColor = Colors.white,
  19. bool showProgressBar = true,
  20. Color progressBarColor = Colors.red,
  21. Color progressBarBackgroundColor = Colors.grey,
  22. double progressBarHeight = 3.0,
  23. bool snapToEdges = true,
  24. double snapThreshold = 64.0,
  25. bool allowDrag = true,
  26. bool allowExpand = true,
  27. bool showBackdropWhenExpanded = false,
  28. Color backdropColor = Colors.black54,
  29. bool showTitle = true,
  30. bool isReelsMode = false,
  31. TextStyle titleStyle = const TextStyle(color: Colors.white, fontSize: 14.0, fontWeight: FontWeight.w500),
  32. bool showControls = true,
  33. double controlsHeight = 48.0,
  34. Color controlsBackgroundColor = Colors.black87,
  35. double reelsWidth = 30,
  36. double reelsHeight = 100,
  37. double reelsSliderSize = 25,
  38. Color reelsBackgroundColor = Colors.black45,
  39. Color reelsSliderColor = Colors.white,
  40. IconData reelsSliderIcon = Icons.drag_handle,
  41. Color reelsSliderIconColor = Colors.black,
  42. 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,
});