File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
feature/photolog/capture/src/main/java/com/twix/photolog/capture/component Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,10 @@ package com.twix.photolog.capture.component
33import androidx.camera.compose.CameraXViewfinder
44import androidx.compose.foundation.border
55import androidx.compose.foundation.layout.Box
6+ import androidx.compose.foundation.layout.aspectRatio
67import androidx.compose.foundation.layout.fillMaxSize
8+ import androidx.compose.foundation.layout.fillMaxWidth
79import androidx.compose.foundation.layout.padding
8- import androidx.compose.foundation.layout.size
910import androidx.compose.foundation.shape.RoundedCornerShape
1011import androidx.compose.runtime.Composable
1112import androidx.compose.ui.Modifier
@@ -35,7 +36,8 @@ fun CameraPreviewBox(
3536 Box (
3637 modifier =
3738 modifier
38- .size(375.66 .dp)
39+ .fillMaxWidth()
40+ .aspectRatio(1f )
3941 .padding(horizontal = 5 .dp)
4042 .onGloballyPositioned { coordinates ->
4143 onPositioned(coordinates.boundsInParent().bottom)
You can’t perform that action at this time.
0 commit comments