IntroductionScreenConfiguration constructor
IntroductionScreenConfiguration({
- ScanbotColor? backgroundColor,
- ScanbotColor? dividerColor,
- ScanbotColor? handlerColor,
- bool showAutomatically = false,
- ButtonConfiguration? topBarDoneButton,
- StyledText? title,
- StyledText? subtitle,
- 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")))
];