CameraBottomBar constructor

CameraBottomBar({
  1. BarButtonConfiguration? importButton,
  2. BarButtonConfiguration? autoSnappingModeButton,
  3. BarButtonConfiguration? manualSnappingModeButton,
  4. ShutterButton? shutterButton,
  5. BarButtonConfiguration? torchOnButton,
  6. BarButtonConfiguration? torchOffButton,
  7. 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();