CameraBottomBar constructor
CameraBottomBar({
- BarButtonConfiguration? importButton,
- BarButtonConfiguration? autoSnappingModeButton,
- BarButtonConfiguration? manualSnappingModeButton,
- ShutterButton? shutterButton,
- BarButtonConfiguration? torchOnButton,
- BarButtonConfiguration? torchOffButton,
- PreviewButton? previewButton,
Implementation
CameraBottomBar({
BarButtonConfiguration? importButton,
BarButtonConfiguration? autoSnappingModeButton,
BarButtonConfiguration? manualSnappingModeButton,
ShutterButton? shutterButton,
BarButtonConfiguration? torchOnButton,
BarButtonConfiguration? torchOffButton,
PreviewButton? previewButton,
}) : importButton = importButton ??
BarButtonConfiguration(
title: StyledText(
visible: false,
text: "?cameraImportButtonTitle",
color: ScanbotColor("?sbColorOnPrimary")),
accessibilityDescription:
"?accessibilityDescriptionCameraImportButton",
background: BackgroundStyle(
strokeColor: ScanbotColor("#00000000"),
fillColor: ScanbotColor("#00000000"),
strokeWidth: 0.0),
icon: IconStyle(color: ScanbotColor("?sbColorOnPrimary"))),
autoSnappingModeButton = autoSnappingModeButton ??
BarButtonConfiguration(
title: StyledText(
visible: false,
text: "?cameraAutoSnapButtonTitle",
color: ScanbotColor("?sbColorOnPrimary")),
accessibilityDescription:
"?accessibilityDescriptionCameraAutoSnapButton",
background: BackgroundStyle(
strokeColor: ScanbotColor("#00000000"),
fillColor: ScanbotColor("#00000000"),
strokeWidth: 0.0),
icon: IconStyle(color: ScanbotColor("?sbColorOnPrimary"))),
manualSnappingModeButton = manualSnappingModeButton ??
BarButtonConfiguration(
title: StyledText(
visible: false,
text: "?cameraManualSnapButtonTitle",
color: ScanbotColor("?sbColorOnPrimary")),
accessibilityDescription:
"?accessibilityDescriptionCameraManualSnapButton",
background: BackgroundStyle(
strokeColor: ScanbotColor("#00000000"),
fillColor: ScanbotColor("#00000000"),
strokeWidth: 0.0),
icon: IconStyle(color: ScanbotColor("?sbColorOnPrimary"))),
shutterButton = shutterButton ??
ShutterButton(
accessibilityDescription:
"?accessibilityDescriptionCameraShutterButton"),
torchOnButton = torchOnButton ??
BarButtonConfiguration(
title: StyledText(
visible: false,
text: "?cameraTorchOnButtonTitle",
color: ScanbotColor("?sbColorOnPrimary")),
accessibilityDescription:
"?accessibilityDescriptionCameraTorchOnButton",
background: BackgroundStyle(
strokeColor: ScanbotColor("#00000000"),
fillColor: ScanbotColor("#00000000"),
strokeWidth: 0.0),
icon: IconStyle(color: ScanbotColor("?sbColorOnPrimary"))),
torchOffButton = torchOffButton ??
BarButtonConfiguration(
title: StyledText(
visible: false,
text: "?cameraTorchOffButtonTitle",
color: ScanbotColor("?sbColorOnPrimary")),
accessibilityDescription:
"?accessibilityDescriptionCameraTorchOffButton",
background: BackgroundStyle(
strokeColor: ScanbotColor("#00000000"),
fillColor: ScanbotColor("#00000000"),
strokeWidth: 0.0),
icon: IconStyle(color: ScanbotColor("?sbColorOnPrimary"))),
previewButton = previewButton ?? PagePreviewMode();