how can i make the shadow on the right edge less t...
# compose-desktop
z
how can i make the shadow on the right edge less thick? for some reason the shadow looks weird.
Copy code
@Composable
fun GroupDetailItem(
    label: String,
    description: String,
) = Box(modifier = Modifier.padding(all = 30.dp)) {
        Box(
            modifier = Modifier
                .shadow(
                    elevation = 4.dp,
                    shape = RoundedCornerShape(8.dp)
                )
                .background(Color.White),
            contentAlignment = Alignment.Center
        ) {
            Row(Modifier.fillMaxWidth()
                .height(SETTINGS_HEADER_SIZE)
                .padding(horizontal = 16.dp)
                .semantics(mergeDescendants = true) {
                    contentDescription = description
                }, verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.SpaceBetween) {
                Text(label)
            }
        }
}
d
I think it's better to use
Surface
instead of
Box
here