ManualCountEditDialog constructor

ManualCountEditDialog({
  1. ScanbotColor? sheetColor,
  2. ScanbotColor? dividerColor,
  3. ScanbotColor? modalOverlayColor,
  4. StyledText? title,
  5. StyledText? info,
  6. ButtonConfiguration? updateButton,
  7. ButtonConfiguration? cancelButton,
  8. 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"));