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(color: ScanbotColor("?sbColorOnSurface")),
enableCameraButton = enableCameraButton ??
ButtonConfiguration(
text: "?cameraPermissionEnableCameraButton",
background: BackgroundStyle(
strokeColor: ScanbotColor("?sbColorPrimary"),
fillColor: ScanbotColor("?sbColorPrimary"),
strokeWidth: 0.0),
foreground: ForegroundStyle(
iconVisible: false,
color: ScanbotColor("?sbColorOnPrimary"))),
closeButton = closeButton ??
ButtonConfiguration(
text: "?cameraPermissionCloseButton",
background: BackgroundStyle(
strokeColor: ScanbotColor("#00000000"),
fillColor: ScanbotColor("#00000000"),
strokeWidth: 0.0),
foreground: ForegroundStyle(
iconVisible: false,
color: ScanbotColor("?sbColorPrimary"))),
enableCameraTitle = enableCameraTitle ??
StyledText(
text: "?cameraPermissionEnableCameraTitle",
color: ScanbotColor("?sbColorOnSurface")),
enableCameraExplanation = enableCameraExplanation ??
StyledText(
text: "?cameraPermissionEnableCameraExplanation",
color: ScanbotColor("?sbColorOnSurfaceVariant"));