CallxCallScreen constructor
const
CallxCallScreen({
- Key? key,
- required Call call,
- required List<
Widget> controls, - required VoidCallback onBack,
- required bool nativeVideo,
- CallxVideoBuilder? videoBuilder,
- bool compactVideoControls = true,
- bool autoHideControls = true,
- Duration controlsTimeout = const Duration(seconds: 5),
- bool controlsPinned = false,
- Widget? elapsed,
- Widget? localControls,
- Widget? leadingControls,
- String? error,
- Widget? endControl,
- Widget? header,
- String? statusLabel,
- Alignment previewAlignment = Alignment.topRight,
- Size previewSize = const Size(96, 140),
- String minimizeLabel = 'Minimize call',
- String doneLabel = 'Done',
- String cameraPausedLabel = 'Camera paused',
- String localPreviewLabel = 'Local camera preview',
- 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(),
});