How to create an image swiper with two-finger zooming capability in Flutter?

I tried using the popular photo_view package, but the zoom functionality behaves oddly — when dragging the zoomed image with two fingers, it feels like the image is “escaping” from under the fingers. Additionally, when double-tapping the image, the zoom happens in a step-by-step manner, in two stages, while normally zooming should be done in one smooth stage. They also tried carousel_slider with the built-in InteractiveViewer — the pinch-to-zoom works better (the photo doesn’t “escape” from under the fingers), but there is no zoom on double-tap, and InteractiveViewer seems less interactive than photo_view (there are no “bounce-back” animations when zooming beyond the maximum or minimum sizes).