Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Renan Araujo committed Nov 18, 2018
1 parent 434f770 commit 7b0cb21
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

A simple zoomable image widget for Flutter

[PhotoView](/lib/photo_view.dart) is useful in full screen exibition cases.
[PhotoView](/lib/photo_view.dart) is useful in full screen exhibition cases.

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

Expand Down Expand Up @@ -34,7 +34,7 @@ Widget build(BuildContext context) {
return Container(
child: PhotoView(
imageProvider: AssetImage("assets/large-image.jpg"),
);
)
);
}
```
Expand All @@ -55,7 +55,7 @@ Widget build(BuildContext context) {
height: 300.0,
child: PhotoViewInline(
imageProvider: AssetImage("assets/large-image.jpg"),
);
)
);
}
```
Expand Down Expand Up @@ -85,13 +85,12 @@ Widget build(BuildContext context) {
),
PhotoViewGalleryPageOptions(
imageProvider: AssetImage("assets/gallery3.jpeg"),
minScale: PhotoViewComputedScale.contained * 0.8,
maxScale: PhotoViewComputedScale.covered * 1.1,
initialScale: PhotoViewComputedScale.contained * 0.98,
heroTag: "tag3",
),
],
backgroundColor: Colors.black87,
);
)
);
}
```
Expand Down

0 comments on commit 7b0cb21

Please sign in to comment.