Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Added: Extra parameters to the photoViewGalleryPageOption widget
Browse files Browse the repository at this point in the history
  • Loading branch information
i-aiymen committed Nov 16, 2023
1 parent e22089f commit d84eefa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/ui/viewer/file/zoomable_image.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,19 @@ class _ZoomableImageState extends State<ZoomableImage>

if (_imageProvider != null) {
content = PhotoViewGallery.builder(
gaplessPlayback: true,
scaleStateChangedCallback: _scaleStateChangedCallback,
backgroundDecoration: widget.backgroundDecoration as BoxDecoration?,
builder: (context, index) {
return PhotoViewGalleryPageOptions(
imageProvider: _imageProvider!,
minScale: PhotoViewComputedScale.contained,
minScale: widget.shouldCover
? PhotoViewComputedScale.covered
: PhotoViewComputedScale.contained,
heroAttributes: PhotoViewHeroAttributes(
tag: widget.tagPrefix! + _photo.tag,
),
controller: _photoViewController,
);
},
itemCount: 1,
Expand Down

0 comments on commit d84eefa

Please sign in to comment.