Releases: bluefireteam/photo_view
Releases · bluefireteam/photo_view
0.2.1
Added:
scrollPhisics
option toPhotoViewGallery
0.2.0
Introducing "Controller"
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.
Added
-
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
androtation
. 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
0.1.3
0.1.2
0.1.1
0.1.0
Release stabilizing usage API.
Fixed
Deprecated
Changed
- [BREAKING]
size
option has been renamed tocustomSize
#54 - [BREAKING]
backgroundColor
has been removed. UsebackgroundDecoration
instead. #56
Removed
- [BREAKING]
PhotoViewGallery
is not exported byPhotoView
anymore, importpackage:photo_view/photo_view_gallery.dart
Added
0.0.11
Fixed
- Added
scaleStateChangedCallback
property toPhotoViewGallery
constructor. #43
Added
- An animation in
onScaleEnd
to make panning gestures more smoothly. #50 #8 - Initial scale option: customize initial scale with
initialScale
that can be either a double or aPhotoViewComputedScale
as well. The new option is on in thePhotoView
,PhotoViewGalleryPageOptions
andPhotoViewInline
constructors #29 #52
0.0.10
0.0.9
Removed
- BREAKING: Support to Dart 1 has been dropped in this version
Added
- Analyzer option
unnecessary_new
PhotoViewGallery
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,
);
);
}
0.0.8
Changed
- BREAKING: Renamed
PhotoViewScaleBoundary
toPhotoViewComputedScale
in order to better describe what is the role of this class, that will represent more than boundaries in the future (initialScale
for instance) #30