Dreamers’ LAB : Image Viewer
Today I present my Image Viewer extension. You can use this extension to view images like Facebook and Instagram etc. The user can double tap or pinch to zoom. It supports all images : URL, assets, local.
Blocks

Create Image Viewer in a layout.
Layout : Arangements, Cardviews etc.
Path : Path to image. You can change it later

Event triggered when scale changes. You can find current scale, x and y positions.

Change image path. It supports all images : URL, assets, local.

Set animation duration in milli seconds

Enable or disable zoom

Set initial scale type of image.
Avaliable image scale types
Sample Usage
Demo
https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/f/7/f7f222d050f78649ed043dd54c92590dc98e1182.mp4
Files
AIA File : ImageView.aia (777.3 KB)
AIX File : com.dreamers.ImageViewer.aix (43.8 KB)
NOTE : The extension loads images asynchronously but doesn’t support caching. The caching issue can be hopefully fixed if @DevYB makes slight changes in his extension.