CameraPermissionScreen constructor
CameraPermissionScreen({
- StatusBarMode statusBarMode = StatusBarMode.DARK,
- ScanbotColor? background,
- ScanbotColor? iconBackground,
- IconStyle? icon,
- ButtonConfiguration? enableCameraButton,
- ButtonConfiguration? closeButton,
- StyledText? enableCameraTitle,
- StyledText? enableCameraExplanation,
Implementation
CameraPermissionScreen({
this.statusBarMode = StatusBarMode.DARK,
ScanbotColor? background,
ScanbotColor? iconBackground,
IconStyle? icon,
ButtonConfiguration? enableCameraButton,
ButtonConfiguration? closeButton,
StyledText? enableCameraTitle,
StyledText? enableCameraExplanation,
}) : background = background ?? ScanbotColor("?sbColorSurface"),
iconBackground = iconBackground ?? ScanbotColor("?sbColorOutline"),
icon = icon ??
IconStyle(visible: true, color: ScanbotColor("?sbColorOnSurface")),
enableCameraButton = enableCameraButton ??
ButtonConfiguration(
text: "{'type': 'String', 'default': 'Grant permission'}",
background: BackgroundStyle(),
foreground: ForegroundStyle()),
closeButton = closeButton ??
ButtonConfiguration(
text: "Close",
background: BackgroundStyle(),
foreground: ForegroundStyle()),
enableCameraTitle = enableCameraTitle ??
StyledText(
text: "Camera permission denied!",
color: ScanbotColor("?colorOnSurface")),
enableCameraExplanation = enableCameraExplanation ??
StyledText(
text:
"Please allow the usage of the camera to start the scanning process.",
color: ScanbotColor("?sbColorOnSurfaceVariant"));