'How to achive custom shaped container?

reference image

I want to achieve a curved container like this. I tried with cliprrect but couldn't really achieve that shape. I found CustomPaint and looked into it, but not really understand how to use it or how to begin to draw that shape.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source