Ink
11/05/2021, 11:43 AMcurioustechizen
11/05/2021, 11:51 AMInk
11/05/2021, 12:19 PM@Composable
fun AddPhotoBottomSheet() {
Column(
modifier = Modifier
.background(MaterialTheme.colors.onBackground)
.fillMaxWidth()
.wrapContentHeight()
.clip(RoundedCornerShape(topStart = 10.dp, topEnd = 10.dp))
.shadow(
elevation = 3.dp,
shape = RoundedCornerShape(topStart = 10.dp, topEnd = 10.dp)
)
.padding(bottom = 15.dp)
) {
AddPhotoFromItem(R.drawable.ic_add_photo_from_gallery, "")
AddPhotoFromItem(R.drawable.ic_add_photo_from_camera, "")
}
}
Brian G
11/05/2021, 12:52 PMColton Idle
11/05/2021, 1:58 PMChris Sinco [G]
11/05/2021, 8:00 PMIn Compose UI, shadows add some padding to make room for the shadow.Hmm that shouldn’t be happening. Do you have a code snippet + Preview that demonstrates this?
Brian G
11/07/2021, 10:56 AMChris Sinco [G]
11/07/2021, 10:04 PM