ManualCountEditDialog constructor
ManualCountEditDialog({
- ScanbotColor? sheetColor,
- ScanbotColor? dividerColor,
- ScanbotColor? modalOverlayColor,
- StyledText? title,
- StyledText? info,
- ButtonConfiguration? updateButton,
- ButtonConfiguration? cancelButton,
- IconStyle? clearTextButton,
Implementation
ManualCountEditDialog({
ScanbotColor? sheetColor,
ScanbotColor? dividerColor,
ScanbotColor? modalOverlayColor,
StyledText? title,
StyledText? info,
ButtonConfiguration? updateButton,
ButtonConfiguration? cancelButton,
IconStyle? clearTextButton,
}) : sheetColor = sheetColor ?? ScanbotColor("?sbColorSurface"),
dividerColor = dividerColor ?? ScanbotColor("?sbColorOutline"),
modalOverlayColor =
modalOverlayColor ?? ScanbotColor("?sbColorModalOverlay"),
title = title ??
StyledText(
text: "Update count", color: ScanbotColor("?sbColorOnSurface")),
info = info ??
StyledText(
text: "Adjust the number of items you scanned.",
color: ScanbotColor("?sbColorOnSurfaceVariant")),
updateButton = updateButton ??
ButtonConfiguration(
visible: true,
text: "Update",
background: BackgroundStyle(
strokeColor: ScanbotColor("?sbColorPrimary"),
fillColor: ScanbotColor("?sbColorPrimary"),
strokeWidth: 1.0),
foreground: ForegroundStyle(
iconVisible: false,
color: ScanbotColor("?sbColorOnPrimary"),
useShadow: false)),
cancelButton = cancelButton ??
ButtonConfiguration(
visible: true,
text: "Cancel",
background: BackgroundStyle(
strokeColor: ScanbotColor("#00000000"),
fillColor: ScanbotColor("#00000000"),
strokeWidth: 1.0),
foreground: ForegroundStyle(
iconVisible: false,
color: ScanbotColor("?sbColorPrimary"),
useShadow: false)),
clearTextButton = clearTextButton ??
IconStyle(
visible: true, color: ScanbotColor("?sbColorOnSurfaceVariant"));