CreditCardScannerIntroScreenConfiguration constructor

CreditCardScannerIntroScreenConfiguration({
  1. CreditCardScannerIntroImage? image,
  2. ScanbotColor? backgroundColor,
  3. ScanbotColor? dividerColor,
  4. ScanbotColor? handlerColor,
  5. bool showAutomatically = false,
  6. StyledText? title,
  7. StyledText? explanation,
  8. ButtonConfiguration? doneButton,
})

Implementation

CreditCardScannerIntroScreenConfiguration({
  CreditCardScannerIntroImage? image,
  ScanbotColor? backgroundColor,
  ScanbotColor? dividerColor,
  ScanbotColor? handlerColor,
  this.showAutomatically = false,
  StyledText? title,
  StyledText? explanation,
  ButtonConfiguration? doneButton,
})  : image = image ?? CreditCardIntroOneSideImage(),
      backgroundColor = backgroundColor ?? ScanbotColor("?sbColorSurface"),
      dividerColor = dividerColor ?? ScanbotColor("?sbColorOutline"),
      handlerColor = handlerColor ?? ScanbotColor("?sbColorOutline"),
      title = title ??
          StyledText(
              text: "?introScreenTitle",
              color: ScanbotColor("?sbColorOnSurface")),
      explanation = explanation ??
          StyledText(
              text: "?introScreenText",
              color: ScanbotColor("?sbColorOnSurface")),
      doneButton = doneButton ??
          ButtonConfiguration(
              text: "?introScreenDoneButton",
              accessibilityDescription:
                  "?accessibilityDescriptionIntroScreenDoneButton",
              background: BackgroundStyle(
                  strokeColor: ScanbotColor("#00000000"),
                  fillColor: ScanbotColor("?sbColorPrimary"),
                  strokeWidth: 0.0),
              foreground:
                  ForegroundStyle(color: ScanbotColor("?sbColorOnPrimary")));