CallxCallScreen constructor

const CallxCallScreen({
  1. Key? key,
  2. required Call call,
  3. required List<Widget> controls,
  4. required VoidCallback onBack,
  5. required bool nativeVideo,
  6. CallxVideoBuilder? videoBuilder,
  7. bool compactVideoControls = true,
  8. bool autoHideControls = true,
  9. Duration controlsTimeout = const Duration(seconds: 5),
  10. bool controlsPinned = false,
  11. Widget? elapsed,
  12. Widget? localControls,
  13. Widget? leadingControls,
  14. String? error,
  15. Widget? endControl,
  16. Widget? header,
  17. String? statusLabel,
  18. Alignment previewAlignment = Alignment.topRight,
  19. Size previewSize = const Size(96, 140),
  20. String minimizeLabel = 'Minimize call',
  21. String doneLabel = 'Done',
  22. String cameraPausedLabel = 'Camera paused',
  23. String localPreviewLabel = 'Local camera preview',
  24. CallxCallBrand brand = const CallxCallBrand(),
})

Implementation

const CallxCallScreen({
  super.key,
  required this.call,
  required this.controls,
  required this.onBack,
  required this.nativeVideo,
  this.videoBuilder,
  this.compactVideoControls = true,
  this.autoHideControls = true,
  this.controlsTimeout = const Duration(seconds: 5),
  this.controlsPinned = false,
  this.elapsed,
  this.localControls,
  this.leadingControls,
  this.error,
  this.endControl,
  this.header,
  this.statusLabel,
  this.previewAlignment = Alignment.topRight,
  this.previewSize = const Size(96, 140),
  this.minimizeLabel = 'Minimize call',
  this.doneLabel = 'Done',
  this.cameraPausedLabel = 'Camera paused',
  this.localPreviewLabel = 'Local camera preview',
  this.brand = const CallxCallBrand(),
});