MrzScannerIntroScreenConfiguration constructor
Implementation
MrzScannerIntroScreenConfiguration({
MrzScannerIntroImage? image,
ScanbotColor? backgroundColor,
ScanbotColor? dividerColor,
ScanbotColor? handlerColor,
this.showAutomatically = false,
StyledText? title,
StyledText? explanation,
ButtonConfiguration? doneButton,
}) : image = image ?? MrzIntroDefaultImage(),
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")));