'Zoom to specific pixel on image while using interactive viewer in flutter

My question might be simple but I couldn't find a way to make it happen. I'm trying to implement my own google maps. I am using a custom image as a map and i want to zoom to specific location of that image according to my location.

Is there a way of zooming to known pixels? I tried Transform.scale() but it didn't do the job and I tried writing controller for image viewer but couldn't make it.

I am open to suggestions. Thank you.



Sources

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

Source: Stack Overflow

Solution Source