Skip to content

Releases: bluefireteam/photo_view

0.2.1

08 Apr 13:10
Compare
Choose a tag to compare

Added:

  • scrollPhisics option to PhotoViewGallery

0.2.0

15 Feb 20:48
Compare
Choose a tag to compare

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

0.1.3

14 Jan 19:35
Compare
Choose a tag to compare

Minor bugfix release

Fixed

  • transitionOnUserGestures value not used #81

0.1.2

14 Jan 14:31
c12207c
Compare
Choose a tag to compare

Minor bugfixes

Fixed

  • setState() called after dispose() #71
  • transitionOnUserGestures on hero #65 #77

0.1.1

29 Dec 16:41
Compare
Choose a tag to compare

Minor bug fix

Removed

  • [BREAKING] deprecated PhotoViewInline is no longer in the codebase, use PhotoView instead. #74

Fixed

  • PhotoViewScaleState is stuck in zooming when clamping. Happens when minScale or maxScale has the same value as initialScale. #61 #62 #73 #76

0.1.0

27 Nov 22:18
Compare
Choose a tag to compare

Release stabilizing usage API.

Fixed

  • Warning when importing photo_view_scale_state #58
  • Blank image when defining heroTag #57 #59

Deprecated

  • [BREAKING] PhotoViewInline class has been deprecated in favor of PhotoView only. #54 #53

Changed

  • [BREAKING] size option has been renamed to customSize #54
  • [BREAKING] backgroundColor has been removed. Use backgroundDecoration instead. #56

Removed

  • [BREAKING] PhotoViewGallery is not exported by PhotoView anymore, import package:photo_view/photo_view_gallery.dart

Added

  • Rotation 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

0.0.11

18 Nov 03:10
Compare
Choose a tag to compare

Fixed

  • Added scaleStateChangedCallback property to PhotoViewGalleryconstructor. #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 a PhotoViewComputedScale as well. The new option is on in the PhotoView, PhotoViewGalleryPageOptions and PhotoViewInline constructors #29 #52

0.0.10

08 Oct 18:38
Compare
Choose a tag to compare

Fixed

  • Error when not specifying gaplessPlayback to PhotoViewInlines constructor. #38 #39

0.0.9

06 Oct 18:08
Compare
Choose a tag to compare

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

14 Sep 03:15
Compare
Choose a tag to compare

Changed

  • BREAKING: Renamed 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) #30

Fixed

  • Fixed weird behavior when either maxScale or minscale passed coincided with the computed value for any of the PhotoViewScaleState #30
  • Missing heroTag param for PhotoviewInline #27 #26