CameraAwesomeBuilder.previewOnly constructor
CameraAwesomeBuilder.previewOnly({
- SensorConfig? sensorConfig,
- Widget? progressIndicator,
- required CameraLayoutBuilder builder,
- AwesomeFilter? filter,
- OnImageForAnalysis? onImageForAnalysis,
- AnalysisConfig? imageAnalysisConfig,
- OnPreviewTap onPreviewTapBuilder()?,
- OnPreviewScale onPreviewScaleBuilder()?,
- CameraPreviewFit? previewFit,
- EdgeInsets previewPadding = EdgeInsets.zero,
- Alignment previewAlignment = Alignment.center,
- PictureInPictureConfigBuilder? pictureInPictureConfigBuilder,
Use this constructor when you don't want to take pictures or record videos. You can still do image analysis.
Implementation
CameraAwesomeBuilder.previewOnly({
SensorConfig? sensorConfig,
Widget? progressIndicator,
required CameraLayoutBuilder builder,
AwesomeFilter? filter,
OnImageForAnalysis? onImageForAnalysis,
AnalysisConfig? imageAnalysisConfig,
OnPreviewTap Function(CameraState)? onPreviewTapBuilder,
OnPreviewScale Function(CameraState)? onPreviewScaleBuilder,
CameraPreviewFit? previewFit,
EdgeInsets previewPadding = EdgeInsets.zero,
Alignment previewAlignment = Alignment.center,
PictureInPictureConfigBuilder? pictureInPictureConfigBuilder,
}) : this._(
sensorConfig: sensorConfig ??
SensorConfig.single(sensor: Sensor.position(SensorPosition.back)),
enablePhysicalButton: false,
progressIndicator: progressIndicator,
builder: builder,
saveConfig: null,
onMediaTap: null,
defaultFilter: filter,
onImageForAnalysis: onImageForAnalysis,
imageAnalysisConfig: imageAnalysisConfig,
onPreviewTapBuilder: onPreviewTapBuilder,
onPreviewScaleBuilder: onPreviewScaleBuilder,
previewFit: previewFit ?? CameraPreviewFit.cover,
previewDecoratorBuilder: null,
theme: AwesomeTheme(),
previewPadding: previewPadding,
previewAlignment: previewAlignment,
pictureInPictureConfigBuilder: pictureInPictureConfigBuilder,
);