CameraAwesomeBuilder.custom constructor

CameraAwesomeBuilder.custom({
  1. SensorConfig? sensorConfig,
  2. bool mirrorFrontCamera = false,
  3. bool enablePhysicalButton = false,
  4. Widget? progressIndicator,
  5. required CameraLayoutBuilder builder,
  6. required SaveConfig saveConfig,
  7. AwesomeFilter? filter,
  8. OnImageForAnalysis? onImageForAnalysis,
  9. AnalysisConfig? imageAnalysisConfig,
  10. OnPreviewTap onPreviewTapBuilder(
    1. CameraState
    )?,
  11. OnPreviewScale onPreviewScaleBuilder(
    1. CameraState
    )?,
  12. CameraPreviewFit? previewFit,
  13. AwesomeTheme? theme,
  14. EdgeInsets previewPadding = EdgeInsets.zero,
  15. Alignment previewAlignment = Alignment.center,
  16. PictureInPictureConfigBuilder? pictureInPictureConfigBuilder,
  17. List<AwesomeFilter>? filters,
})

🚧 Experimental

Documentation on its way, API might change

Implementation

CameraAwesomeBuilder.custom({
  SensorConfig? sensorConfig,
  bool mirrorFrontCamera = false,
  bool enablePhysicalButton = false,
  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,
  PictureInPictureConfigBuilder? pictureInPictureConfigBuilder,
  List<AwesomeFilter>? filters,
}) : this._(
        sensorConfig: sensorConfig ??
            SensorConfig.single(
              sensor: Sensor.position(SensorPosition.back),
            ),
        enablePhysicalButton: enablePhysicalButton,
        progressIndicator: progressIndicator,
        builder: builder,
        saveConfig: saveConfig,
        onMediaTap: null,
        defaultFilter: filter,
        onImageForAnalysis: onImageForAnalysis,
        imageAnalysisConfig: imageAnalysisConfig,
        onPreviewTapBuilder: onPreviewTapBuilder,
        onPreviewScaleBuilder: onPreviewScaleBuilder,
        previewFit: previewFit ?? CameraPreviewFit.cover,
        previewDecoratorBuilder: null,
        theme: theme ?? AwesomeTheme(),
        previewPadding: previewPadding,
        previewAlignment: previewAlignment,
        pictureInPictureConfigBuilder: pictureInPictureConfigBuilder,
        availableFilters: filters,
      );