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 snapToEdges = true,
  20. double snapThreshold = 64.0,
  21. bool allowDrag = true,
  22. bool allowExpand = true,
  23. bool showBackdropWhenExpanded = false,
  24. Color backdropColor = Colors.black54,
  25. 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,
});