What is the best approach for displaying a cropped / masked image in Flutter?
Suppose I have one image with a mask (for example, an irregular star shape with a transparent background) and another image that I want to hide with this star, so that only a part inside the star of the original image will be displayed.
I am aiming for something like PorterDuffXfermode on Android (a similar question here is Android, how do I apply a mask to ImageView? ).
In the case of simple mask shapes, is the RenderClipOval way a good approach?
source share