CameraAwesomeBuilder.custom constructor

CameraAwesomeBuilder.custom({
  1. Sensors sensor = Sensors.back,
  2. FlashMode flashMode = FlashMode.none,
  3. double zoom = 0.0,
  4. bool mirrorFrontCamera = false,
  5. bool enablePhysicalButton = false,
  6. CameraAspectRatios aspectRatio = CameraAspectRatios.ratio_4_3,
  7. ExifPreferences? exifPreferences,
  8. bool enableAudio = true,
  9. Widget? progressIndicator,
  10. required CameraLayoutBuilder builder,
  11. required SaveConfig saveConfig,
  12. AwesomeFilter? filter,
  13. OnImageForAnalysis? onImageForAnalysis,
  14. AnalysisConfig? imageAnalysisConfig,
  15. OnPreviewTap onPreviewTapBuilder(
    1. CameraState
    )?,
  16. OnPreviewScale onPreviewScaleBuilder(
    1. CameraState
    )?,
  17. CameraPreviewFit? previewFit,
  18. AwesomeTheme? theme,
  19. EdgeInsets previewPadding = EdgeInsets.zero,
  20. 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,
      );