ScanbotAlertDialog constructor

ScanbotAlertDialog({
  1. StyledText? title,
  2. StyledText? subtitle,
  3. ScanbotColor? sheetColor,
  4. ScanbotColor? modalOverlayColor,
  5. ScanbotColor? dividerColor,
  6. ButtonConfiguration? okButton,
  7. ButtonConfiguration? actionButton,
  8. 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));