ScanbotAlertDialog constructor
ScanbotAlertDialog({
- StyledText? title,
- StyledText? subtitle,
- ScanbotColor? sheetColor,
- ScanbotColor? modalOverlayColor,
- ScanbotColor? dividerColor,
- required ButtonConfiguration okButton,
- required ButtonConfiguration cancelButton,
Implementation
ScanbotAlertDialog({
StyledText? title,
StyledText? subtitle,
ScanbotColor? sheetColor,
ScanbotColor? modalOverlayColor,
ScanbotColor? dividerColor,
required this.okButton,
required this.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");