From ca25408d72ec8ec6097ece6637beda4dcff98d4a Mon Sep 17 00:00:00 2001 From: smocken78 Date: Thu, 19 Sep 2024 23:37:29 +0200 Subject: [PATCH 1/4] Update pubspec.yaml --- pubspec.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index 40ac1be..3b8f8ee 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -6,16 +6,16 @@ repository: https://github.com/shubham-gupta-16/multi_image_picker_view issue_tracker: https://github.com/shubham-gupta-16/multi_image_picker_view/issues environment: - sdk: '>=2.18.6 <4.0.0' + sdk: '>=3.4.0 <4.0.0' dependencies: flutter: sdk: flutter - flutter_reorderable_grid_view: ^5.0.1 + flutter_reorderable_grid_view: ^5.1.0 dev_dependencies: flutter_test: sdk: flutter flutter_lints: ^4.0.0 -flutter: \ No newline at end of file +flutter: From daf455103a664777ad92afa81ba25a14ec398416 Mon Sep 17 00:00:00 2001 From: smocken78 Date: Fri, 20 Sep 2024 10:16:23 +0200 Subject: [PATCH 2/4] Update pubspec.yaml --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 3b8f8ee..d87b89d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: multi_image_picker_view description: A complete widget which can easily pick multiple images from device and display them in UI. Also picked image can be re-ordered and removed easily. -version: 1.1.0 +version: 1.1.1 homepage: https://github.com/shubham-gupta-16/multi_image_picker_view repository: https://github.com/shubham-gupta-16/multi_image_picker_view issue_tracker: https://github.com/shubham-gupta-16/multi_image_picker_view/issues From a0fa4d92346e3ec530074c2ce439e7f7c26e2a67 Mon Sep 17 00:00:00 2001 From: smocken78 Date: Sun, 22 Sep 2024 11:18:43 +0200 Subject: [PATCH 3/4] Update pubspec.yaml --- pubspec.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index d87b89d..41c8ffa 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: multi_image_picker_view description: A complete widget which can easily pick multiple images from device and display them in UI. Also picked image can be re-ordered and removed easily. -version: 1.1.1 +version: 1.1.2 homepage: https://github.com/shubham-gupta-16/multi_image_picker_view repository: https://github.com/shubham-gupta-16/multi_image_picker_view issue_tracker: https://github.com/shubham-gupta-16/multi_image_picker_view/issues @@ -12,7 +12,7 @@ dependencies: flutter: sdk: flutter - flutter_reorderable_grid_view: ^5.1.0 + flutter_reorderable_grid_view: ^5.2.0 dev_dependencies: flutter_test: sdk: flutter From 131c1d1e2670e1a405b95a0a2a6f4bb85d610a5a Mon Sep 17 00:00:00 2001 From: smocken Date: Wed, 25 Sep 2024 10:23:42 +0200 Subject: [PATCH 4/4] io_preview --- example/pubspec.lock | 14 +++++++------- example/pubspec.yaml | 2 +- lib/src/image_file_view/io_preview.dart | 22 ++++++++++++++-------- pubspec.yaml | 2 +- 4 files changed, 23 insertions(+), 17 deletions(-) diff --git a/example/pubspec.lock b/example/pubspec.lock index 40fcf73..1984f37 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -122,10 +122,10 @@ packages: dependency: "direct dev" description: name: flutter_lints - sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04 + sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c" url: "https://pub.dev" source: hosted - version: "2.0.3" + version: "4.0.0" flutter_plugin_android_lifecycle: dependency: transitive description: @@ -138,10 +138,10 @@ packages: dependency: transitive description: name: flutter_reorderable_grid_view - sha256: "40abcc5bff228ebff119326502e7357ee6399956b60b80b17385e9770b7458c0" + sha256: c51453b0054b1b305062944fa078b1b20a77ec961bfdcba7cfc5768ffc16ac64 url: "https://pub.dev" source: hosted - version: "5.0.1" + version: "5.2.0" flutter_test: dependency: "direct dev" description: flutter @@ -260,10 +260,10 @@ packages: dependency: transitive description: name: lints - sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452" + sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235" url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "4.0.0" matcher: dependency: transitive description: @@ -302,7 +302,7 @@ packages: path: ".." relative: true source: path - version: "1.1.0" + version: "1.1.4" path: dependency: transitive description: diff --git a/example/pubspec.yaml b/example/pubspec.yaml index b57927f..e9645ed 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -21,7 +21,7 @@ dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^2.0.0 + flutter_lints: ^4.0.0 flutter: diff --git a/lib/src/image_file_view/io_preview.dart b/lib/src/image_file_view/io_preview.dart index a308102..d2057cf 100644 --- a/lib/src/image_file_view/io_preview.dart +++ b/lib/src/image_file_view/io_preview.dart @@ -28,14 +28,20 @@ class ImageFileView extends StatelessWidget { color: backgroundColor ?? Theme.of(context).colorScheme.surface, borderRadius: borderRadius ?? BorderRadius.zero, ), - child: Uri.tryParse(imageFile.path!)?.scheme.startsWith('http') == true - ? Image.network( - imageFile.path!, - fit: fit, - errorBuilder: errorBuilder ?? _defaultErrorBuilder, - ) - : Image.file( - File(imageFile.path!), + child: imageFile.path != null + ? Uri.tryParse(imageFile.path!)?.scheme.startsWith('http') == true + ? Image.network( + imageFile.path!, + fit: fit, + errorBuilder: errorBuilder ?? _defaultErrorBuilder, + ) + : Image.file( + File(imageFile.path!), + fit: fit, + errorBuilder: errorBuilder ?? _defaultErrorBuilder, + ) + : Image.memory( + imageFile.bytes!, fit: fit, errorBuilder: errorBuilder ?? _defaultErrorBuilder, ), diff --git a/pubspec.yaml b/pubspec.yaml index 41c8ffa..9f878bc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: multi_image_picker_view description: A complete widget which can easily pick multiple images from device and display them in UI. Also picked image can be re-ordered and removed easily. -version: 1.1.2 +version: 1.1.4 homepage: https://github.com/shubham-gupta-16/multi_image_picker_view repository: https://github.com/shubham-gupta-16/multi_image_picker_view issue_tracker: https://github.com/shubham-gupta-16/multi_image_picker_view/issues