A dart+flutter package for panning and zooming images by touch.
// You can use any ImageProvider, including NetworkImage and FileImage. new ZoomableImage(new AssetImage('images/squirrel.jpg'), scale: 16.0)
That's all you need. See below and
An extremely simple demo of the
Add this to your package's pubspec.yaml file:
dependencies: zoomable_image: ^1.3.1
You can install packages from the command line:
$ flutter packages get
Alternatively, your editor might support
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|1.3.1||Jan 30, 2019|
|1.2.1+1||Sep 4, 2018|
|1.2.1||Sep 4, 2018|
|1.2.0||May 3, 2018|
|1.1.2||Nov 25, 2017|
|1.1.1||Jul 13, 2017|
|1.1.0||May 18, 2017|
|1.0.5||May 15, 2017|
|1.0.4||May 13, 2017|
|1.0.3||May 11, 2017|
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Feb 14, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
lib/src/zoomable_image.dart. (-1 points)
lib/src/zoomable_image.dart reported 2 hints:
line 10 col 1: This function has a return type of 'Size', but doesn't end with a return statement.
line 10 col 6: The function '_containmentSize' isn't used.
Provide a file named
CHANGELOG.md. (-20 points)
Changelog entries help developers follow the progress of your package. See the example generated by
The package description is too short. (-11 points)
Add more detail to the
description field of
pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.