Tash
07/05/2021, 10:12 PMgraphicsLayer
+ shadowElevation
🧵 (using rc01)Tash
07/05/2021, 10:13 PMTash
07/05/2021, 10:13 PMTash
07/05/2021, 10:15 PMAndrey Kulikov
07/06/2021, 10:19 AMTash
07/06/2021, 5:33 PM.shadow()
modifier just creates a feathered shadow around the Box
. The shadowElevation
in graphicsLayer
is what produces the skewed shadow + artifacts, regardless of the .shadow()
modifierAndrey Kulikov
07/06/2021, 6:04 PMTash
07/06/2021, 6:15 PMBox(
modifier = Modifier
.wrapContentSize()
.graphicsLayer {
rotationX = /** **/
rotationY = /** **/
cameraDistance = /** **/
}
.graphicsLayer {
shadowElevation = elevation
shape = RoundedCornerShape(6.dp)
},
)
wondering why/how this separation works... 🤔 is this how the API is supposed to be used for this use case?Andrey Kulikov
07/06/2021, 6:50 PMTash
07/06/2021, 6:59 PMTash
07/06/2021, 9:48 PM