NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev, #368 most downloaded on pub.dev
Photo View provides a gesture sensitive zoomable widget. Photo View is largely used to show interactive images and other stuff such as SVG.
Latest stable
0.15.0
Last release 3 years ago
no release in 18 months
Ships unpredictably
gaps range from 9 days to 1.9 years
Nearly every release is documented
notes for 44 of 47 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
50 releases · first in 2018
Drag across the ruler to compare, or tap a release to open it.
Add the possibility to restrict user scale #537
[Changes][0.15.0]
<a name="0.14.0"></a>
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Made wantKeepAlive parameter to make it optional #479
Network image issue on flutter 2.5 #467 #464
AutomaticKeepAliveClientMixin to keep state on photoview #452[Changes][0.13.0]
<a name="0.12.0"></a>
'PointerEvent' can't be assigned to the parameter type 'PointerDownEvent' #423 (comment) #420 #441 #442 #445
[Changes][0.12.0]
<a name="0.11.1"></a>
Wrong null check operator #399 #400
[Changes][0.11.1]
<a name="0.11.0"></a>
initialScale on controller #322 #289
initialScale on controller #322 #289loadFailedChild in favor of errorBuilder. #320 #287[Changes][0.11.0]
<a name="0.10.3"></a>
Fix double and single tap on gallery #293 #271 #326
[Changes][0.10.3]
<a name="0.10.2"></a>
errorBuilder option to show a widget when things go south when retrieving the image. #320 #287
Add ability to disable gestures #233 #234
[Changes][0.10.1]
<a name="0.10.0"></a>
loadingChild options in both PhotoView and PhotoViewGallery in favor of loadingBuilder . Previously deprecated; #307
loadingChild options in both PhotoView and PhotoViewGallery in favor of loadingBuilder. Previously deprecated; #307loadingBuilder which provides a way to create a progress loader. Thanks to @neckaros #250 #254
loadingBuilder which provides a way to create a progress loader. Thanks to @neckaros #250 #254loadingChild options in both PhotoView and PhotoViewGallery in favor of loadingBuilder;basePosition on PhotoViewGallery being ignored #255 #219Internal: stop using deprecated inheritFromWidgetOfExactType in favor of dependOnInheritedWidgetOfExactType #235
filterQuality option to the property to improve image quality after scale #228loadFailedChild option to specify a widget instance to be shown when the image retrieval process failed #231inheritFromWidgetOfExactType in favor of dependOnInheritedWidgetOfExactType #235tightMode option that allows PhotoView to be used inside a dialog. #167 #211
tightMode option that allows PhotoView to be used inside a dialog. #167 #211PhotoViewGestureDetectorScope widget that allows PhotoView to be used on scrollable contexts (PageView, list view etc) #211childSize to be optional. Now it expands if no value is provided #210 #199Clamping position on controller #208 #160
[Changes][0.8.2]
<a name="0.8.1"></a>
Web support on the example app, thanks to @YuyaAbo #201
[Changes][0.8.1]
<a name="0.8.0"></a>
Change to our own custom gesture detector, making it work nicely with an extenal gesture detector. It solves #41 which was previously tackled on #185
PhotoViewImageWrapper to PhotoViewCore and reorganized src files, not externally relevant. #197PhotoViewScaleStateChangedCallback #197usePageViewWrapper option from the gallery #197Detect image edge behavior #185 #41
[Changes][0.7.0]
<a name="0.6.0"></a>
Nothing published for this version
Weird rotation behavior #189 #174 #92
[Changes][0.6.0]
<a name="0.5.0"></a>
[BREAKING] All hero attributes where moved into a new data class: PhotoViewHeroAttributes. #175 #177
PhotoViewHeroAttributes. #175 #177PhotoViewHeroAttributes. #175 #177[Changes][0.5.0]
<a name="0.4.2"></a>
onTapUp and onTapDown on PhotoViewGallery #146
onTapUp and onTapDown on PhotoViewGallery #146onTapUp and onTapDown on PhotoViewGallery #146[Changes][0.4.2]
<a name="0.4.1"></a>
First release since halt due to Flutter breaking changes.
First release since halt due to Flutter breaking changes.
With this version, Photo view is stable compatible. It means that every new release must be compatible with the channel master. Breaking changes that are still on master or beta channels will not be included on any new release.
This is due to several master channel users who complained on a recent breaking change which broke one of the PhotoView core features. #144 #143 #147…
** Fix Flutter breaking change **
Dowgraded Flutter SDK version to 1.4.7
[Changes][0.3.3]
<a name="0.3.2"></a>
FlutterError compatibility with breaking changing breaking for Flutter channel master users. #135 #136 #137
FlutterError compatibility with breaking changing breaking for Flutter channel master users. #135 #136 #137onTapUp and onTapDown overriding higher onTap handle #134 #138FlutterError compatibility with breaking changing breaking for Flutter channel master users. #135 #136 #137onTapUp and onTapDown overriding higher onTap handle #134 #138[Changes][0.3.2]
<a name="0.3.1"></a>
Nothing published for this version
Nothing published for this version
Custom child builder to PhotoViewGalleryPageOptions that enables the usage of custom children in the gallery. #126 #131
PhotoViewGalleryPageOptions that enables the usage of custom children in the gallery. #126 #131PhotoViewGalleryPageOptions that enables the usage of custom children in the gallery. #126 #131[Changes][0.3.1]
<a name="0.3.0"></a>
[BREAKING] PhotoViewControllerValue does not contain scaleState value anymore, now you should control that value ona separate controller: PhotoViewSca
PhotoViewControllerValue does not contain scaleState value anymore, now you should control that value ona separate controller: PhotoViewScaleStateController. That is due to some concerns expressed #127. All details on controller docs #129 #127scaleStateController option to PhotoView and PhotoViewGalleryPageOptions #129Two new callbacks onTapUp and onTapDown #122
onTapUp and onTapDown #122scaleState in the controller #124herotag is an Object, not a String anymore #122zooming has been replaced by zoomingIn and zoomingOut #124[BREAKING] PhotoViewController no longer extends ValueNotifier, instead, it contains one. Method addListener is no longer available due to a race cond
PhotoViewController no longer extends ValueNotifier, instead, it contains one. Method addListener is no longer available due to a race condition that creates bugs. #106PhotoViewController no longer extends ValueNotifier, instead, it contains one. Method addListener is no longer available due to a race condition that creates bugs. #106[Changes][0.2.4]
<a name="0.2.3"></a>
New builder constructor for PhotoViewGallery #119 #78 #113
PhotoViewGallery #119 #78 #113PhotoViewGallery #119 #78 #113[Changes][0.2.3]
<a name="0.2.2"></a>
Make initialScale, minScale and maxScale option work on PhotoViewGallery
initialScale, minScale and maxScale option work on PhotoViewGalleryinitialScale, minScale and maxScale option work on PhotoViewGallery[Changes][0.2.2]
<a name="0.2.1"></a>
scrollPhisics option to PhotoViewGallery
scrollPhisics option to PhotoViewGalleryscrollPhisics option to PhotoViewGallery<!-- Generated by changelog-from-release -->
Controller exposes photo views external State, this releases put the proposal stated on #86 into practice. There is a lot of things to do yet, but it
Controller exposes photo views external State, this releases put the proposal stated on #86 into practice. There is a lot of things to do yet, but it is already o possible to use it.
Controller class: As stated on #86, it is a way to update and listen for changes in the internal values of Photoview, such as scale and rotation. Interesting classes: #89 #86 #70 #66 #67
basePosition: Define an Alignment that will determinate where the content will be placed along the container. #79
scaleStateCycle: A way to customize double-tap scale change mechanic #69
transitionOnUserGestures value not used #81
Minor bugfix release
setState() called after dispose() #71
Minor bugfixes
[BREAKING] deprecated PhotoViewInline is no longer in the codebase, use PhotoView instead. #74
Minor bug fix
PhotoViewInline is no longer in the codebase, use PhotoView instead. #74PhotoViewScaleState is stuck in zooming when clamping. Happens when minScale or maxScale has the same value as initialScale. #61 #62 #73 #76[BREAKING] PhotoViewInline class has been deprecated in favor of PhotoView only. #54 #53
Release stabilizing usage API.
heroTag #57 #59PhotoViewInline class has been deprecated in favor of PhotoView only. #54 #53size option has been renamed to customSize #54backgroundColor has been removed. Use backgroundDecoration instead. #56PhotoViewGallery is not exported by PhotoView anymore, import package:photo_view/photo_view_gallery.dartRotation gesture support: use the option enableRotation to rotate the content as the user rotates the fingers in the pinch gesture. #36 #32
Custom child support: added the constructor PhotoView.customChild which enables the user to show any widget instead of an image. #51 #55
initialScale option #52 #29
Added scaleStateChangedCallback property to PhotoViewGalleryconstructor. #43
scaleStateChangedCallback property to PhotoViewGalleryconstructor. #43onScaleEnd to make panning gestures more smoothly. #50 #8initialScale that can be either a double or a PhotoViewComputedScale as well. The new option is on in the PhotoView, PhotoViewGalleryPageOptions and PhotoViewInline constructors #29 #52Error when not specifying gaplessPlayback to PhotoViewInlines constructor. #38 #39
gaplessPlayback to PhotoViewInlines constructor. #38 #39BREAKING: Support to Dart 1 has been dropped in this version
unnecessary_newPhotoViewGallery widget@override
Widget build(BuildContext context) {
return Container(
child: PhotoViewGallery(
pageOptions: <PhotoViewGalleryPageOptions>[
PhotoViewGalleryPageOptions(
imageProvider: AssetImage("assets/gallery1.jpeg"),
heroTag: "tag1",
),
PhotoViewGalleryPageOptions(
imageProvider: AssetImage("assets/gallery2.jpeg"),
heroTag: "tag2",
maxScale: PhotoViewComputedScale.contained * 0.3
),
PhotoViewGalleryPageOptions(
imageProvider: AssetImage("assets/gallery3.jpeg"),
minScale: PhotoViewComputedScale.contained * 0.8,
maxScale: PhotoViewComputedScale.covered * 1.1,
heroTag: "tag3",
),
],
backgroundColor: Colors.black87,
);
);
}
BREAKING: Renamed PhotoViewScaleBoundary to PhotoViewComputedScale in order to better describe what is the role of this class, that will represent mor
PhotoViewScaleBoundary to PhotoViewComputedScale in order to better describe what is the role of this class, that will represent more than boundaries in the future (initialScale for instance) #30maxScale or minscale passed coincided with the computed value for any of the PhotoViewScaleState #30heroTag param for PhotoviewInline #27 #26Nothing published for this version
Analyzer options for linting #16, #21
heroTag arguments to PhotoView and PhotoViewInline constructors for usage along with Hero animations. #15, #19, #22// screen1
...
Hero(
tag: "someTag",
child: Image.asset(
"assets/large-image.jpg",
width: 150.0
),
)
// screen2
...
child: PhotoView(
imageProvider: AssetImage("assets/large-image.jpg"),
heroTag: "someTag",
)
PhotoViewInlineClass for inline usage
PhotoViewInlineClass for inline usage (#11)minScale: PhotoViewScaleBoundary.contained * 0.8,
maxScale: PhotoViewScaleBoundary.covered * 1.1,
MemoryProvider image flickering issue (#12) - Thanks to @SocratesDzClamp scale options with boundary constants
PhotoViewScaleState.contained, an abrupt scale change is applied when user starts to pinchClamp scale options with animation
Nothing published for this version
Nothing published for this version
One column per quarter.