ArOverlayGeneralConfiguration constructor

ArOverlayGeneralConfiguration({
  1. bool visible = false,
  2. BadgeStyle? counterBadge,
  3. bool automaticSelectionEnabled = false,
  4. BarcodeItemInfoPosition barcodeItemInfoPosition = BarcodeItemInfoPosition.BELOW,
  5. ArOverlayPolygonConfiguration? polygon,
  6. BarcodeItemConfiguration? barcodeItemConfiguration,
})

Implementation

ArOverlayGeneralConfiguration({
  this.visible = false,
  BadgeStyle? counterBadge,
  this.automaticSelectionEnabled = false,
  this.barcodeItemInfoPosition = BarcodeItemInfoPosition.BELOW,
  ArOverlayPolygonConfiguration? polygon,
  BarcodeItemConfiguration? barcodeItemConfiguration,
})  : counterBadge = counterBadge ??
          BadgeStyle(
              background: BackgroundStyle(),
              foregroundColor: ScanbotColor("?sbColorOnSurface")),
      polygon = polygon ??
          ArOverlayPolygonConfiguration(
              visible: true,
              deselected: PolygonStyle(),
              selected: PolygonStyle()),
      barcodeItemConfiguration = barcodeItemConfiguration ??
          BarcodeItemConfiguration(
              imageVisible: true,
              titleSelected: StyledText(
                  text: "BARCODE_TITLE",
                  color: ScanbotColor("?sbColorOnSurface")),
              subtitleSelected: StyledText(
                  text: "BARCODE_SUBTITLE",
                  color: ScanbotColor("?sbColorOnSurfaceVariant")),
              titleDeselected: StyledText(
                  text: "BARCODE_TITLE",
                  color: ScanbotColor("?sbColorOnSurface")),
              subtitleDeselected: StyledText(
                  text: "BARCODE_SUBTITLE",
                  color: ScanbotColor("?sbColorOnSurfaceVariant")),
              backgroundSelected: PolygonStyle(
                  strokeColor: ScanbotColor("?sbColorPositive"),
                  fillColor: ScanbotColor("?sbColorPositive"),
                  strokeWidth: 1.0,
                  cornerRadius: 5.0),
              backgroundDeselected: PolygonStyle(
                  strokeColor: ScanbotColor("?sbColorSurface"),
                  fillColor: ScanbotColor("?sbColorSurface"),
                  strokeWidth: 1.0,
                  cornerRadius: 5.0));