I am new to flutter and bumped into this problem of adding images to shapes in flutter. I have created the custom shape but I am not able to insert image into it. Here is what I want to achieve : A picture inside a custom shape
I tried giving Image as the child of CustomPainter but still no good results.
Can anyone suggest a good approach?
Like Mindhun MP wrote you need to use a custom clipper. Here is an example clipping the Container:
Your case should be similar to mine so check out quadraticBezierTo function. My example:
Also here is a great article that explains more about Paths in Flutter.