I have a container (Card, Box, or whatever..) that contains two problematic areas, marked with red circles. I need to crop these areas out while ensuring that the shadow underneath is preserved.
I have tried different approaches, but I couldn't find a solution to crop the areas effectively.
Use the .border(width = ..., color = .., CustomShape(...))
modifier with a custom shape. Here is a detailed explanation Custom Shape with Jetpack Compose