Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.
/ scalable_image Public archive

A widget that shows an image which can be scaled and dragged using gestures.

License

Notifications You must be signed in to change notification settings

EP-u-NW/scalable_image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[DISCONTINUED] - 24.05.2021

While this widget was useful in the early days of Flutter, the Flutter team introduced an own way to zoom and pan, see InteractiveViewer.

scalable_image

A widget that shows an image which can be scaled and dragged using gestures. This package was designed for quadratic images. It can happen that it don't behave as you expect for non quadratic images. A workaround is to wrap this image in an AspectRatio with an aspect ratio of the target image. This has the drawback that it does not fill the whole space while zooming since it will contain the aspect ratio. Feel free to fork on github.

Getting Started

You can also try using an other ImageProvider, like NetworkImage and FileImage.

new ScalableImage(
          imageProvider: new AssetImage('assets/example.png'),
          dragSpeed: 4.0,
          maxScale: 16.0
        )

That's all you need. See below and example/ for an example.

demo!

About

A widget that shows an image which can be scaled and dragged using gestures.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published