From 7982a3fe352d85b188c3e347842262f9ed976b1c Mon Sep 17 00:00:00 2001 From: Basem Osama Date: Mon, 26 Aug 2024 15:41:13 +0300 Subject: [PATCH] feat: Update to v0.1.7 Signed-off-by: Basem Osama --- CHANGELOG.md | 4 ++++ lib/src/widgets/image_viewer.dart | 8 ++++---- pubspec.yaml | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d2fa564..8138cea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +# 0.1.7 + +- Update `ImageViewer.cachedNetwork` to accept `errorBuilder` parameter. + # 0.1.6 - Updated packages. diff --git a/lib/src/widgets/image_viewer.dart b/lib/src/widgets/image_viewer.dart index 6b9ce84..cb83c52 100644 --- a/lib/src/widgets/image_viewer.dart +++ b/lib/src/widgets/image_viewer.dart @@ -218,17 +218,17 @@ class ImageViewer extends StatefulWidget { this.width, this.height, this.fit = BoxFit.cover, + this.alignment = Alignment.center, this.color, + this.colorBlendMode, + this.errorBuilder, + this.placeholderBuilder, }) : _type = _ImageType.cachedNetworkImage, bytes = null, file = null, clipBehavior = null, iconInfo = null, - colorBlendMode = null, - errorBuilder = null, - placeholderBuilder = null, iconDirection = null, - alignment = Alignment.center, path = src; const ImageViewer.svgAsset( diff --git a/pubspec.yaml b/pubspec.yaml index 8f783ab..6413377 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: playx_widget description: Playx Package that contains utility widgets as it contains common widgets and utilities that are needed in each project . -version: 0.1.6 +version: 0.1.7 homepage: https://sourcya.io repository: https://github.com/playx-flutter/playx_widget issue_tracker: https://github.com/playx-flutter/playx_widget/issues