How can I clip the content to match the corner of the Card.
@Composable
fun PreviewWindow() {
Card {
Column(
modifier = Modifier
.padding(2.dp)
.background(Color.Blue)
.width(200.dp)
.aspectRatio(1F)
) { }
}
}
Look at the corners of the Card. I want them to clip at the padding. The CardDefalts has shape but I can't get corner radius.Thus it is not very dynamic.
I know that I can set custom shape to achieve this. But I want to know any dynamic solution.

