CameraAwesomeBuilder.custom constructor
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 onPreviewTapBuilder()?,
- OnPreviewScale onPreviewScaleBuilder()?,
- CameraPreviewFit? previewFit,
- AwesomeTheme? theme,
- EdgeInsets previewPadding = EdgeInsets.zero,
- Alignment previewAlignment = Alignment.center,
- PictureInPictureConfigBuilder? pictureInPictureConfigBuilder,
- 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,
);