photo_view 0.0.2 icon indicating copy to clipboard operation
photo_view: ^0.0.2 copied to clipboard

outdatedDart 2 incompatible

A simple zoomable image widget for Flutter.

photo_view Build Status - Travis #

A simple zoomable image widget for Flutter projects

PhotoView is useful in full screen exibition cases.

Resolves a image provider and show the result with useful gestures support, such as pinch to zoom and pan.

Todo:

  • Scale on doubleTap
  • Zoom when pinched
  • Respect screen and image boundaries
  • Multiple image support
  • Rotate gesture rotates image

Pull requests are welcome 😊.

Sample code #

Given a ImageProvider imageProvider (such as AssetImage or NetworkImage):

@override
Widget build(BuildContext context) {
  return new Container(
    child: new PhotoView(
      imageProvider: imageProvider
    );
  );
}

Constructor #

PhotoView({ ImageProvider imageProvider, Widget loadingChild })

Creates a widget that resolves and shows a image with zoom and pan gestures support. If provided, the widget shows loadingChild while the image is being resolved.

2042
likes
0
pub points
100%
popularity

Publisher

verified publisher iconblue-fire.xyz

A simple zoomable image widget for Flutter.

Repository (GitHub)
View/report issues

License

Icon for licenses.unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on photo_view