CameraAwesomeBuilder.custom constructor
CameraAwesomeBuilder.custom({
- Sensors sensor = Sensors.back,
- FlashMode flashMode = FlashMode.none,
- double zoom = 0.0,
- bool mirrorFrontCamera = false,
- bool enablePhysicalButton = false,
- CameraAspectRatios aspectRatio = CameraAspectRatios.ratio_4_3,
- ExifPreferences? exifPreferences,
- bool enableAudio = true,
- Widget? progressIndicator,
- required CameraLayoutBuilder builder,
- required SaveConfig saveConfig,
- AwesomeFilter? filter,
- OnImageForAnalysis? onImageForAnalysis,
- AnalysisConfig? imageAnalysisConfig,
- OnPreviewTap onPreviewTapBuilder()?,
- OnPreviewScale onPreviewScaleBuilder()?,
- CameraPreviewFit? previewFit,
- AwesomeTheme? theme,
- EdgeInsets previewPadding = EdgeInsets.zero,
- Alignment previewAlignment = Alignment.center,
🚧 Experimental
Documentation on its way, API might change
Implementation
CameraAwesomeBuilder.custom({
Sensors sensor = Sensors.back,
FlashMode flashMode = FlashMode.none,
double zoom = 0.0,
bool mirrorFrontCamera = false,
bool enablePhysicalButton = false,
CameraAspectRatios aspectRatio = CameraAspectRatios.ratio_4_3,
ExifPreferences? exifPreferences,
bool enableAudio = true,
Widget? progressIndicator,
required CameraLayoutBuilder builder,
required SaveConfig saveConfig,
AwesomeFilter? filter,
OnImageForAnalysis? onImageForAnalysis,
AnalysisConfig? imageAnalysisConfig,
OnPreviewTap Function(CameraState)? onPreviewTapBuilder,
OnPreviewScale Function(CameraState)? onPreviewScaleBuilder,
CameraPreviewFit? previewFit,
AwesomeTheme? theme,
EdgeInsets previewPadding = EdgeInsets.zero,
Alignment previewAlignment = Alignment.center,
}) : this._(
sensor: sensor,
flashMode: flashMode,
zoom: zoom,
mirrorFrontCamera: mirrorFrontCamera,
enablePhysicalButton: enablePhysicalButton,
aspectRatio: aspectRatio,
exifPreferences: exifPreferences,
enableAudio: enableAudio,
progressIndicator: progressIndicator,
builder: builder,
saveConfig: saveConfig,
onMediaTap: null,
filter: filter,
onImageForAnalysis: onImageForAnalysis,
imageAnalysisConfig: imageAnalysisConfig,
onPreviewTapBuilder: onPreviewTapBuilder,
onPreviewScaleBuilder: onPreviewScaleBuilder,
previewFit: previewFit ?? CameraPreviewFit.cover,
previewDecoratorBuilder: null,
theme: theme ?? AwesomeTheme(),
previewPadding: previewPadding,
previewAlignment: previewAlignment,
);