alorma
05/19/2021, 6:52 PMclip()
modifier, but then elevation is lostBradleycorn
05/19/2021, 7:07 PMgraphicsLayer
modifier so that you can apply clipping and elevation? Kind of like:
modifier = Modifier
.fillMaxWidth()
.padding(32.dp)
.border(width = 4.dp, color = red700, CutCornerShape(32.dp))
.graphicsLayer {
shadowElevation = 8.dp.toPx()
shape = CutCornerShape(32.dp)
clip = true
}
Bradleycorn
05/19/2021, 7:07 PMBradleycorn
05/19/2021, 7:08 PMAbhishek Dewan
05/20/2021, 2:11 AM