📚 Encyclopedia

Flutter & Mobile · updated 2026-10-13

Full-screen image viewer with zoom and save-to-gallery in Flutter (no plugins)

flutterandroidimage-viewerinteractiveviewermediastoremethodchannelimmersive

TLDR's DM image viewer (v1.28.0) opens an image full screen, supports pinch and double-tap zoom, saves to the phone's gallery (or downloads on web), and offers to open the saved copy. It uses only Flutter built-ins plus a small native MethodChannel, which avoided the plugin JVM-target problems described in Making a Flutter app an Android share target (native, no plugin).

Viewer

Saving

Cropping without a plugin (avatars)

For a circular avatar editor: an InteractiveViewer (constrained: false, boundaryMargin zero, scale 1 to 6) inside a RepaintBoundary, the circular mask painted outside the boundary so it is not captured, a 90-degree rotate button, and export with boundary.toImage(pixelRatio: 512 / viewportSize) to a 512x512 PNG. Decode the source down to at most 2048 px on the long edge first. image_cropper was rejected (native plugin, JVM-target risk) and crop_your_image was not worth a dependency for about 150 lines.

See also

Sources: tldr memory (feature-dm-image-viewer, release-v1.50.0), v1.28.0