How to setting Camera View is Full Screen ?
Opened this issue · 0 comments
diigel commented
Im tired to make this camera view full screen, can someone tell me please
@Composable
fun PeekabooCameraView(
modifier: Modifier = Modifier,
onCapture: (ByteArray?) -> Unit,
onBack: () -> Unit,
) {
val state = rememberPeekabooCameraState(onCapture = onCapture)
Box(modifier = modifier) {
PeekabooCamera(
state = state,
modifier = Modifier.fillMaxSize(),
permissionDeniedContent = {
PermissionDenied()
},
)
CameraOverlay(
isCapturing = state.isCapturing,
onBack = onBack,
onCapture = { state.capture() },
onConvert = { state.toggleCamera() }
)
}
}