CroppingScreenConfiguration constructor
CroppingScreenConfiguration({
- ButtonConfiguration? topBarBackButton,
- StyledText? topBarTitle,
- ButtonConfiguration? topBarConfirmButton,
- ScanbotColor? backgroundColor,
- ScanbotColor? croppingHandlerColor,
- ScanbotColor? croppingPolygonColor,
- CroppingBottomBar? bottomBar,
Implementation
CroppingScreenConfiguration({
ButtonConfiguration? topBarBackButton,
StyledText? topBarTitle,
ButtonConfiguration? topBarConfirmButton,
ScanbotColor? backgroundColor,
ScanbotColor? croppingHandlerColor,
ScanbotColor? croppingPolygonColor,
CroppingBottomBar? bottomBar,
}) : topBarBackButton = topBarBackButton ??
ButtonConfiguration(
visible: true,
text: "?croppingTopBarCancelButtonTitle",
accessibilityDescription:
"?accessibilityDescriptionCroppingTopBarCancelButton",
background: BackgroundStyle(
strokeColor: ScanbotColor("#00000000"),
fillColor: ScanbotColor("#00000000"),
strokeWidth: 0.0),
foreground: ForegroundStyle(
iconVisible: true,
color: ScanbotColor("?sbColorOnPrimary"),
useShadow: false)),
topBarTitle = topBarTitle ??
StyledText(
text: "?croppingScreenTitle",
color: ScanbotColor("?sbColorOnPrimary")),
topBarConfirmButton = topBarConfirmButton ??
ButtonConfiguration(
visible: true,
text: "?croppingTopBarConfirmButtonTitle",
accessibilityDescription:
"?accessibilityDescriptionCroppingTopBarConfirmButton",
background: BackgroundStyle(
strokeColor: ScanbotColor("#00000000"),
fillColor: ScanbotColor("#00000000"),
strokeWidth: 0.0),
foreground: ForegroundStyle(
iconVisible: true,
color: ScanbotColor("?sbColorOnPrimary"),
useShadow: false)),
backgroundColor = backgroundColor ?? ScanbotColor("?sbColorOutline"),
croppingHandlerColor =
croppingHandlerColor ?? ScanbotColor("?sbColorSurface"),
croppingPolygonColor =
croppingPolygonColor ?? ScanbotColor("?sbColorSurface"),
bottomBar = bottomBar ?? CroppingBottomBar();