IntroductionScreenConfiguration constructor

IntroductionScreenConfiguration({
  1. ScanbotColor? backgroundColor,
  2. ScanbotColor? dividerColor,
  3. ScanbotColor? handlerColor,
  4. bool showAutomatically = false,
  5. ButtonConfiguration? topBarDoneButton,
  6. StyledText? title,
  7. StyledText? subtitle,
  8. List<IntroListEntry>? items,
})

Implementation

IntroductionScreenConfiguration({
  ScanbotColor? backgroundColor,
  ScanbotColor? dividerColor,
  ScanbotColor? handlerColor,
  this.showAutomatically = false,
  ButtonConfiguration? topBarDoneButton,
  StyledText? title,
  StyledText? subtitle,
  List<IntroListEntry>? items,
})  : backgroundColor = backgroundColor ?? ScanbotColor("?sbColorSurface"),
      dividerColor = dividerColor ?? ScanbotColor("?sbColorOutline"),
      handlerColor = handlerColor ?? ScanbotColor("?sbColorOutline"),
      topBarDoneButton = topBarDoneButton ??
          ButtonConfiguration(
              visible: true,
              text: "?cameraIntroDoneButton",
              accessibilityDescription:
                  "?accessibilityDescriptionCameraIntroDoneButton",
              background: BackgroundStyle(
                  strokeColor: ScanbotColor("#00000000"),
                  fillColor: ScanbotColor("#00000000"),
                  strokeWidth: 0.0),
              foreground: ForegroundStyle(
                  iconVisible: true,
                  color: ScanbotColor("?sbColorPrimary"),
                  useShadow: false)),
      title = title ??
          StyledText(
              text: "?cameraIntroTitle",
              color: ScanbotColor("?sbColorOnSurface")),
      subtitle = subtitle ??
          StyledText(
              text: "?cameraIntroSubtitle",
              color: ScanbotColor("?sbColorOnSurface")),
      items = items ??
          [
            IntroListEntry(
                image: DocumentIntroImage(),
                text: StyledText(
                    text: "?cameraIntroItem1",
                    color: ScanbotColor("?sbColorOnSurface"))),
            IntroListEntry(
                image: NoIntroImage(),
                text: StyledText(
                    text: "?cameraIntroItem2",
                    color: ScanbotColor("?sbColorOnSurface"))),
            IntroListEntry(
                image: NoIntroImage(),
                text: StyledText(
                    text: "?cameraIntroItem3",
                    color: ScanbotColor("?sbColorOnSurface"))),
            IntroListEntry(
                image: NoIntroImage(),
                text: StyledText(
                    text: "?cameraIntroItem4",
                    color: ScanbotColor("?sbColorOnSurface")))
          ];