diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a3676e..cff1297 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # EasyImageViewer Changelog +## 1.5.0 +- Add ability to infinitely swipe through a set of images by setting `infinitelyScrollable` to `true`. Thanks to [@furkankurt](https://github.com/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](https://github.com/thesmythgroup/easy_image_viewer/issues/52)). diff --git a/lib/src/easy_image_view_pager.dart b/lib/src/easy_image_view_pager.dart index 304dff0..aa23ccf 100644 --- a/lib/src/easy_image_view_pager.dart +++ b/lib/src/easy_image_view_pager.dart @@ -26,14 +26,14 @@ class EasyImageViewPager extends StatefulWidget { /// Create new instance, using the [easyImageProvider] to populate the [PageView], /// and the [pageController] to control the initial image index to display. /// The optional [doubleTapZoomable] boolean defaults to false and allows double tap to zoom. - const EasyImageViewPager( - {Key? key, - required this.easyImageProvider, - required this.pageController, - this.doubleTapZoomable = false, - this.onScaleChanged, - this.infinitelyScrollable = false,}) - : super(key: key); + const EasyImageViewPager({ + Key? key, + required this.easyImageProvider, + required this.pageController, + this.doubleTapZoomable = false, + this.onScaleChanged, + this.infinitelyScrollable = false, + }) : super(key: key); @override State createState() => _EasyImageViewPagerState(); diff --git a/pubspec.yaml b/pubspec.yaml index 24c053a..ab85c62 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: easy_image_viewer description: An easy image viewer with pinch & zoom, multi image, and built-in full-screen dialog support. -version: 1.4.1 +version: 1.5.0 homepage: https://github.com/thesmythgroup/easy_image_viewer environment: