BarcodeItemConfiguration constructor
BarcodeItemConfiguration({
- bool imageVisible = true,
- StyledText? titleSelected,
- StyledText? subtitleSelected,
- StyledText? titleDeselected,
- StyledText? subtitleDeselected,
- PolygonStyle? backgroundSelected,
- PolygonStyle? backgroundDeselected,
Implementation
BarcodeItemConfiguration({
this.imageVisible = true,
StyledText? titleSelected,
StyledText? subtitleSelected,
StyledText? titleDeselected,
StyledText? subtitleDeselected,
PolygonStyle? backgroundSelected,
PolygonStyle? backgroundDeselected,
}) : titleSelected = titleSelected ??
StyledText(
text: "BARCODE_TITLE",
color: ScanbotColor("?sbColorOnSurface")),
subtitleSelected = subtitleSelected ??
StyledText(
text: "BARCODE_SUBTITLE",
color: ScanbotColor("?sbColorOnSurfaceVariant")),
titleDeselected = titleDeselected ??
StyledText(
text: "BARCODE_TITLE",
color: ScanbotColor("?sbColorOnSurface")),
subtitleDeselected = subtitleDeselected ??
StyledText(
text: "BARCODE_SUBTITLE",
color: ScanbotColor("?sbColorOnSurfaceVariant")),
backgroundSelected = backgroundSelected ??
PolygonStyle(
strokeColor: ScanbotColor("?sbColorPositive"),
fillColor: ScanbotColor("?sbColorPositive"),
strokeWidth: 0.0,
cornerRadius: 10.0),
backgroundDeselected = backgroundDeselected ??
PolygonStyle(
strokeColor: ScanbotColor("?sbColorSurface"),
fillColor: ScanbotColor("?sbColorSurface"),
strokeWidth: 0.0,
cornerRadius: 10.0);