photo_view 0.0.4 copy "photo_view: ^0.0.4" to clipboard
photo_view: ^0.0.4 copied to clipboard

outdatedDart 1 only

A simple zoomable image widget for Flutter.

Flutter Photo View Build Status - Travis #

A simple zoomable image widget for Flutter

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
  • ✅ Center image when zooming out
  • ✅ Add image zoom limits (minScale an maxScale)
  • ✅ Add GIF support
  • ❌ Multiple image support (Gallery mode)
  • ❌ Rotate gesture rotates image (Work in progress)

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
    );
  );
}
Simple Image GIF
In action In action

API #

For more information about how to use Photo View, check the API Docs

2968
likes
0
pub points
100%
popularity

Publisher

verified publisherblue-fire.xyz

A simple zoomable image widget for Flutter.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on photo_view