easy_image_viewer 1.5.1 easy_image_viewer: ^1.5.1 copied to clipboard
An easy image viewer with pinch & zoom, multi image, and built-in full-screen dialog support.
EasyImageViewer Changelog #
1.5.1 #
- Improve SafeArea support by defaulting the
barrierColor
to be the same as thebackgroundColor
, thus eliminating visually ugly bars on the top and bottom when usinguseSafeArea: true
. ThebarrierColor
can be now also be set explicitly (see GH-62).
1.5.0 #
- Add ability to infinitely swipe through a set of images by setting
infinitelyScrollable
totrue
. Thanks to @furkankurt for implementing this feature. See the README for an example.
1.4.1 #
- Clearly declare Flutter 3.7.0 and Dart 2.19.0 as the minimum supported versions. Fixes a "const Column" error when used with Flutter versions lower than 3.10.0 (see GH-52).
1.4.0 #
- Add a default error widget that is shown when an image fails to load. The default error widget shows a red
Icons.broken_image
and '🖼️💥🚫' (image, boom, no entry) as a message underneath. You can customize the error widget by subclassingEasyImageProvider
and overridingerrorWidgetBuilder
. See the README for an example.
1.3.2 #
- Revert change from
WillPopScope
toPopScope
introduced in 1.3.0. It would require bumping up the minimum Flutter version. We will re-introduce that change when in the next major version.
1.3.1 #
- Revert breaking constructor change introduced in 1.3.0. This changes the default
EasyImageView
constructor back to accepting anImageProvider
instead of aWidget
. Constructing anEasyImageView
with a widget can be done by using a new named constructor:EasyImageView.imageWidget
.
1.3.0 #
- Update Flutter to
3.16.3
- Add loading progress indicator out of the box with options to fully customize both the widget used to display progress as well as the widget used to display an image (Flutter's
Image
by default).
1.2.1 #
- Update Dart to
>=2.12.0 <4.0.0
.
1.2.0 #
- Add option to "double tap to zoom" by setting
doubleTapZoomable
totrue
GH-24. Thank you to Tony of lookingpet for the initial implementation. - Fix an issue where the PageView was not correctly disabled when
swipeDismissible
wastrue
and the image was zoomed in GH-27.
1.1.0 #
- Enable dragging the PageView with a mouse GH-11.
- Add option to "swipe down to dismiss" by setting
swipeDismissible
totrue
GH-14. - Correctly clean up (status bar visibility etc) when using the Android back button to dismiss GH-15.
- Don't use rounded corners on the full-screen dialog when using Material 3 GH-16.
1.0.4 #
- Add
backgroundColor
andcloseButtonColor
arguments that default toblack
andwhite
respectively. These values are passed through toshowDialog
so the background color and the close button color can be customized.
1.0.3 #
- Add
useSafeArea
argument that defaults tofalse
and pass it through toshowDialog
to let a zoomed-in image fill the entire screen. - Use
SizedBox.expand
to makeEasyImageView
fill its parent instead of hard-coding its size to the full screen. - Add example of how to use
EasyImageViewPager
without a dialog, embedding it in a widget and using buttons to go forward and backward.
1.0.2 #
- Provide more comprehensive example.
- Structure lib directory using a src folder.
1.0.1 #
- Update demo image path in README.
1.0.0 #
- Initial version.