ScanbotAlertDialog constructor
ScanbotAlertDialog({
- StyledText? title,
- StyledText? subtitle,
- ScanbotColor? sheetColor,
- ScanbotColor? modalOverlayColor,
- ScanbotColor? dividerColor,
- ButtonConfiguration? okButton,
- ButtonConfiguration? actionButton,
- ButtonConfiguration? cancelButton,
Implementation
ScanbotAlertDialog({
StyledText? title,
StyledText? subtitle,
ScanbotColor? sheetColor,
ScanbotColor? modalOverlayColor,
ScanbotColor? dividerColor,
ButtonConfiguration? okButton,
ButtonConfiguration? actionButton,
ButtonConfiguration? cancelButton,
}) : title = title ??
StyledText(text: "Title", color: ScanbotColor("?sbColorOnSurface")),
subtitle = subtitle ??
StyledText(
text: "Standard explanation message text.",
color: ScanbotColor("?sbColorOnSurfaceVariant")),
sheetColor = sheetColor ?? ScanbotColor("?sbColorSurface"),
modalOverlayColor =
modalOverlayColor ?? ScanbotColor("?sbColorModalOverlay"),
dividerColor = dividerColor ?? ScanbotColor("?sbColorOutline"),
okButton = okButton ??
ButtonConfiguration(
background: BackgroundStyle(
fillColor: ScanbotColor("?sbColorPrimary"))),
actionButton = actionButton ??
ButtonConfiguration(
visible: false,
background: BackgroundStyle(
strokeColor: ScanbotColor("#00000000"),
fillColor: ScanbotColor("#00000000"),
strokeWidth: 0.0)),
cancelButton = cancelButton ??
ButtonConfiguration(
visible: true,
background: BackgroundStyle(
strokeColor: ScanbotColor("#00000000"),
fillColor: ScanbotColor("#00000000"),
strokeWidth: 0.0));