ReviewScreenConfiguration constructor
ReviewScreenConfiguration({
- bool enabled = true,
- StyledText? topBarTitle,
- IconButton? topBarMoreButton,
- ButtonConfiguration? topBarBackButton,
- ReviewMorePopupMenu? morePopup,
- RoundButton? zoomButton,
- ZoomOverlay? zoomOverlay,
- ScanbotColor? backgroundColor,
- ReviewBottomBarConfiguration? bottomBar,
- IconButton? switchNextPageButton,
- IconButton? switchPreviousPageButton,
- UserGuidanceConfiguration? pageCounter,
- ScanbotAlertDialog? deleteAllPagesAlertDialog,
- ScanbotAlertDialog? deletePageAlertDialog,
Implementation
ReviewScreenConfiguration({
this.enabled = true,
StyledText? topBarTitle,
IconButton? topBarMoreButton,
ButtonConfiguration? topBarBackButton,
ReviewMorePopupMenu? morePopup,
RoundButton? zoomButton,
ZoomOverlay? zoomOverlay,
ScanbotColor? backgroundColor,
ReviewBottomBarConfiguration? bottomBar,
IconButton? switchNextPageButton,
IconButton? switchPreviousPageButton,
UserGuidanceConfiguration? pageCounter,
ScanbotAlertDialog? deleteAllPagesAlertDialog,
ScanbotAlertDialog? deletePageAlertDialog,
}) : topBarTitle = topBarTitle ??
StyledText(
text: "?reviewScreenTitle",
color: ScanbotColor("?sbColorOnPrimary")),
topBarMoreButton = topBarMoreButton ??
IconButton(
color: ScanbotColor("?sbColorOnPrimary"),
accessibilityDescription:
"?accessibilityDescriptionReviewMoreButton"),
topBarBackButton = topBarBackButton ??
ButtonConfiguration(
visible: true,
text: "?reviewTopBarBackButtonTitle",
accessibilityDescription:
"?accessibilityDescriptionReviewTopBarBackButton",
background: BackgroundStyle(
strokeColor: ScanbotColor("#00000000"),
fillColor: ScanbotColor("#00000000"),
strokeWidth: 0.0),
foreground: ForegroundStyle(
iconVisible: true,
color: ScanbotColor("?sbColorOnPrimary"),
useShadow: false)),
morePopup = morePopup ?? ReviewMorePopupMenu(),
zoomButton = zoomButton ??
RoundButton(
accessibilityDescription:
"?accessibilityDescriptionReviewZoomButton",
backgroundColor: ScanbotColor("?sbColorSurfaceHigh"),
foregroundColor: ScanbotColor("?sbColorOnPrimary")),
zoomOverlay = zoomOverlay ?? ZoomOverlay(),
backgroundColor =
backgroundColor ?? ScanbotColor("?sbColorOnSurfaceVariant"),
bottomBar = bottomBar ?? ReviewBottomBarConfiguration(),
switchNextPageButton = switchNextPageButton ??
IconButton(
color: ScanbotColor("?sbColorOnPrimary"),
accessibilityDescription:
"?accessibilityDescriptionReviewNextPageButton"),
switchPreviousPageButton = switchPreviousPageButton ??
IconButton(
color: ScanbotColor("?sbColorOnPrimary"),
accessibilityDescription:
"?accessibilityDescriptionReviewPreviousPageButton"),
pageCounter = pageCounter ??
UserGuidanceConfiguration(
title: StyledText(
text: "?reviewScreenPageCount",
color: ScanbotColor("?sbColorOnPrimary")),
background: BackgroundStyle(
fillColor: ScanbotColor("?sbColorSurfaceHigh"),
strokeWidth: 0.0)),
deleteAllPagesAlertDialog = deleteAllPagesAlertDialog ??
ScanbotAlertDialog(
title: StyledText(
text: "?reviewDeleteAllPagesAlertTitle",
color: ScanbotColor("?sbColorOnSurface")),
subtitle: StyledText(
text: "?reviewDeleteAllPagesAlertSubtitle",
color: ScanbotColor("?sbColorOnSurfaceVariant")),
okButton: ButtonConfiguration(
text: "?reviewDeleteAllPagesAlertDeleteButtonTitle",
accessibilityDescription:
"?accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton",
background: BackgroundStyle(
fillColor: ScanbotColor("?sbColorPrimary"),
strokeWidth: 0.0),
foreground: ForegroundStyle(
color: ScanbotColor("?sbColorOnPrimary"))),
actionButton: ButtonConfiguration(visible: false),
cancelButton: ButtonConfiguration(
text: "?reviewDeleteAllPagesAlertCancelButtonTitle",
accessibilityDescription:
"?accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton",
background: BackgroundStyle(
fillColor: ScanbotColor("#00000000"), strokeWidth: 0.0),
foreground: ForegroundStyle(
color: ScanbotColor("?sbColorPrimary")))),
deletePageAlertDialog = deletePageAlertDialog ??
ScanbotAlertDialog(
title: StyledText(
text: "?reviewDeletePageAlertTitle",
color: ScanbotColor("?sbColorOnSurface")),
subtitle: StyledText(
text: "?reviewDeletePageAlertSubTitle",
color: ScanbotColor("?sbColorOnSurfaceVariant")),
okButton: ButtonConfiguration(
text: "?reviewDeletePageAlertConfirmButtonTitle",
accessibilityDescription:
"?accessibilityDescriptionReviewDeletePageAlertConfirmButton",
background: BackgroundStyle(
fillColor: ScanbotColor("?sbColorPrimary"),
strokeWidth: 0.0),
foreground: ForegroundStyle(
color: ScanbotColor("?sbColorOnPrimary"))),
actionButton: ButtonConfiguration(
text: "?reviewDeletePageAlertDeleteRetakeButtonTitle",
accessibilityDescription:
"?accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton",
background: BackgroundStyle(
fillColor: ScanbotColor("#00000000"), strokeWidth: 0.0),
foreground: ForegroundStyle(
color: ScanbotColor("?sbColorPrimary"))),
cancelButton: ButtonConfiguration(
text: "?reviewDeletePageAlertCancelButtonTitle",
accessibilityDescription:
"?accessibilityDescriptionReviewDeletePageAlertCancelButton",
background: BackgroundStyle(
fillColor: ScanbotColor("#00000000"), strokeWidth: 0.0),
foreground: ForegroundStyle(
color: ScanbotColor("?sbColorPrimary"))));