I want to display an image with rounded corners and have the ability to zoom in/out. It's important that the rounded corners of the image do not cut into the image while zooming, and instead remain on the edges of the image.
I am using the extended_image library to display my image and using its gesture mode to zoom in/out of the image. I am aware that it has a rounded image feature using borders, however, the image has to remain static, as zooming in/out causes the edges (borders) to cut into the image.
How can I go about solving this situation (I can use any available library)?
P.S. I would prefer if the solution can be done using the extended_image library.
Extra: A workaround that I can think of is somehow converting the URL being displayed into a Uint8List and during the conversion also adding rounded corners to the image. I know how to convert the URL, but I'm not sure how to add the rounded corners permanently.