In Canvas: How can I “add” an “InnerShadow” and/or...
# compose
d
In Canvas: How can I “add” an “InnerShadow” and/or a “DropShadow” to e.g. a circle with a linearGradient
n
You can use the Modifier.drawShadow api to add a drop shadow to a composable
d
I always thought that’s for the whole Canvas only. Does it really help to add a shadow to the elements drawn inside the Canvas?
n
You can use
Modifier.drawShadow().drawBehind()
to apply a shadow to the composable and issue drawing commands to the canvas to draw a circle with a gradient