BarcodeItemConfiguration constructor

BarcodeItemConfiguration({
  1. bool imageVisible = true,
  2. StyledText? titleSelected,
  3. StyledText? subtitleSelected,
  4. StyledText? titleDeselected,
  5. StyledText? subtitleDeselected,
  6. PolygonStyle? backgroundSelected,
  7. 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);