ArOverlayGeneralConfiguration constructor
ArOverlayGeneralConfiguration({
- bool visible = false,
- BadgeStyle? counterBadge,
- bool automaticSelectionEnabled = false,
- BarcodeItemInfoPosition barcodeItemInfoPosition = BarcodeItemInfoPosition.BELOW,
- ArOverlayPolygonConfiguration? polygon,
- 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));