Skip to content

Commit

Permalink
Update photo_view_gallery.dart (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
M123-dev authored May 26, 2022
1 parent c5fcfdc commit 7e8c335
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/photo_view_gallery.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ typedef PhotoViewGalleryBuilder = PhotoViewGalleryPageOptions Function(
///
/// Some of [PhotoView] constructor options are passed direct to [PhotoViewGallery] constructor. Those options will affect the gallery in a whole.
///
/// Some of the options may be defined to each image individually, such as `initialScale` or `heroAttributes`. Those must be passed via each [PhotoViewGalleryPageOptions].
/// Some of the options may be defined to each image individually, such as `initialScale` or `PhotoViewHeroAttributes`. Those must be passed via each [PhotoViewGalleryPageOptions].
///
/// Example of usage as a list of options:
/// ```
/// PhotoViewGallery(
/// pageOptions: <PhotoViewGalleryPageOptions>[
/// PhotoViewGalleryPageOptions(
/// imageProvider: AssetImage("assets/gallery1.jpg"),
/// heroAttributes: const HeroAttributes(tag: "tag1"),
/// heroAttributes: const PhotoViewHeroAttributes(tag: "tag1"),
/// ),
/// PhotoViewGalleryPageOptions(
/// imageProvider: AssetImage("assets/gallery2.jpg"),
/// heroAttributes: const HeroAttributes(tag: "tag2"),
/// heroAttributes: const PhotoViewHeroAttributes(tag: "tag2"),
/// maxScale: PhotoViewComputedScale.contained * 0.3
/// ),
/// PhotoViewGalleryPageOptions(
Expand Down

0 comments on commit 7e8c335

Please sign in to comment.