0

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.

enter image description here

I have tried different approaches, but I couldn't find a solution to crop the areas effectively.

C. Alen
  • 184
  • 1
  • 10

1 Answers1

1

Use the .border(width = ..., color = .., CustomShape(...)) modifier with a custom shape. Here is a detailed explanation Custom Shape with Jetpack Compose

The result:

enter image description here

Merkost
  • 1,251
  • 9
  • 16