Modern Apps git

← Modern-Apps.git

camera: document CameraScreen raw-scaffold exception

Commit
344b5da85c146adcfc6467387a01059f2ca58ae1
Author
vayun-mathur <[email protected]>
When
2026-08-16 02:37 UTC (3 months ago)
Parents
1bda677
Full-bleed viewfinder with black surface and custom control bars; no Material app bar/title. AppScaffold would inject an unwanted bar and TopAppBarOverlay gives no surface/insets, so the bare Scaffold(containerColor) is kept with a RAW SCAFFOLD EXCEPTION note. :camera:compileDevKotlin green.

Diff

camera/src/main/java/com/vayunmathur/camera/ui/CameraScreen.kt
diff --git a/camera/src/main/java/com/vayunmathur/camera/ui/CameraScreen.kt b/camera/src/main/java/com/vayunmathur/camera/ui/CameraScreen.ktindex 8819f6729b..763d8e74f3 100644--- a/camera/src/main/java/com/vayunmathur/camera/ui/CameraScreen.kt+++ b/camera/src/main/java/com/vayunmathur/camera/ui/CameraScreen.kt@@ -492,6 +492,11 @@ fun CameraScreen(         viewModel.shutterEvents.collect { currentCapture() }     } +    // RAW SCAFFOLD EXCEPTION: full-bleed viewfinder with a black surface and its own custom+    // top/bottom control bars (TopBar/ShutterRow/ModeSelector/BottomBar). It has no Material+    // top app bar or title, so AppScaffold would inject an unwanted bar, and TopAppBarOverlay+    // provides neither the black container surface nor the system-inset padding the preview+    // relies on. The bare Scaffold(containerColor) is the correct primitive here.     Scaffold(         containerColor = Color.Black     ) { padding ->