GemCameraPlayer constructor
const
GemCameraPlayer({})
Creates a camera player widget with the specified controller.
Parameters
controller: The GemCameraPlayerController managing camera feed playback
Parameters
controller: The GemCameraPlayerController managing camera feed playback.fallbackWidget: Optional widget displayed when GemCameraPlayerController.status is GemCameraPlayerStatus.error. If null, an empty box is shown.loadingWidget: Optional widget displayed while waiting for the first camera frame (GemCameraPlayerStatus.loading). If null, an empty box is shown.endWidget: Optional widget displayed after camera feed playback has ended (GemCameraPlayerStatus.ended). If null, an empty box is shown.fit: Optional BoxFit that controls how frames are scaled within the widget bounds. Defaults to BoxFit.cover if not provided.key: Optional widget key forwarded to the superclass.
Implementation
const GemCameraPlayer({
required this.controller,
this.fallbackWidget,
this.loadingWidget,
this.endWidget,
this.fit,
super.key,
});