diff --git a/CHANGELOG.md b/CHANGELOG.md index 39e600a..418b72f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,4 +28,8 @@ ## 1.0.7 -- Updated README.md \ No newline at end of file +- Updated README.md + +## 1.0.8 + +- Improved pub score \ No newline at end of file diff --git a/README.md b/README.md index 0daf30b..f6a9ea5 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Add the following to your `pubspec.yaml` file: ```yaml dependencies: - app_image: ^1.0.7 + app_image: ^1.0.8 ``` Then run `flutter pub get` to install the package. diff --git a/lib/src/app_image.dart b/lib/src/app_image.dart index d8f005b..6435d45 100644 --- a/lib/src/app_image.dart +++ b/lib/src/app_image.dart @@ -108,7 +108,8 @@ class _AppImageState extends State { Navigator.of(context).push( MaterialPageRoute( builder: (_) => AppImageFullScreenViewer( - initialIndex: (widget.allImages?.isNotEmpty ?? false) && (widget.allImages?.contains(widget.image) ?? false) + initialIndex: (widget.allImages?.isNotEmpty ?? false) && + (widget.allImages?.contains(widget.image) ?? false) ? widget.allImages!.indexOf(widget.image) : 0, images: widget.allImages ?? [widget.image], diff --git a/pubspec.yaml b/pubspec.yaml index 2f28d5e..b6063b8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: app_image description: A complete package for developers looking to implement advanced image display features in their Flutter applications with minimal effort. -version: 1.0.7 +version: 1.0.8 repository: https://github.com/elrizwiraswara/app_image environment: