Best practise: Drawing shape over Background : I'm making a design in flutter and would like to have a wave shape over my background at the bottom (like in the image attached).

What is best practise to do it (even for example in html - css).

Is it better to overlay a image shape to the bottom of the background e.g. a white wave-shape or to achieve the effect by drawing the wave-shape programmaticaly - ( In flutter for example by using the path widget.
Or in css by drawing it)?

Img: https://imgur.com/a/0hwF7Sy