inner Shadow
fun Modifier.innerShadow(shape: Shape, color: Color = Color.Black, blur: Dp = 4.dp, offsetY: Dp = 2.dp, offsetX: Dp = 2.dp, spread: Dp = 0.dp): Modifier
Deprecated
Use Modifier.shadow instead
Replace with
this.shadow(shape, color, blur, offsetY, offsetX, spread)Content copied to clipboard
Adds an inner shadow effect inside the content outline.
Uses drawWithCache to cache the outline and paint objects across draw calls.