From 5e8d5cd0c73a374693989c9448a774f5c73e5b68 Mon Sep 17 00:00:00 2001 From: Shubham Gupta Date: Sat, 22 Jun 2024 20:46:38 +0530 Subject: [PATCH] Release for backward support. --- CHANGELOG.md | 3 +++ example/lib/main.dart | 3 ++- example/pubspec.lock | 2 +- lib/src/image_file_view/io_preview.dart | 3 +-- lib/src/image_file_view/web_preview.dart | 3 +-- pubspec.yaml | 2 +- 6 files changed, 9 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 301b0cd..60c92d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.0.3 +- Reverted/Changed the changes made in 1.0.2 as it only working with the latest Flutter version. + ## 1.0.2 - Fixed deprecated methods and classes. diff --git a/example/lib/main.dart b/example/lib/main.dart index 0ed5527..98b75f7 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -19,7 +19,8 @@ void main() { elevatedButtonTheme: ElevatedButtonThemeData( style: ButtonStyle( elevation: MaterialStateProperty.all(0), - backgroundColor: MaterialStateProperty.all(Colors.purple.shade50)), + backgroundColor: + MaterialStateProperty.all(Colors.purple.shade50)), )), home: const DemoPage(), )); diff --git a/example/pubspec.lock b/example/pubspec.lock index 3acf4f0..c582b78 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -318,7 +318,7 @@ packages: path: ".." relative: true source: path - version: "1.0.2" + version: "1.0.3" path: dependency: transitive description: diff --git a/lib/src/image_file_view/io_preview.dart b/lib/src/image_file_view/io_preview.dart index c7e2367..a6cc1ec 100644 --- a/lib/src/image_file_view/io_preview.dart +++ b/lib/src/image_file_view/io_preview.dart @@ -25,8 +25,7 @@ class ImageFileView extends StatelessWidget { return Container( clipBehavior: Clip.antiAlias, decoration: BoxDecoration( - color: backgroundColor ?? - Theme.of(context).colorScheme.background, + color: backgroundColor ?? Theme.of(context).colorScheme.background, borderRadius: borderRadius ?? BorderRadius.zero, ), child: Uri.tryParse(imageFile.path!)?.scheme.startsWith('http') == true diff --git a/lib/src/image_file_view/web_preview.dart b/lib/src/image_file_view/web_preview.dart index 65c1663..9f54a93 100644 --- a/lib/src/image_file_view/web_preview.dart +++ b/lib/src/image_file_view/web_preview.dart @@ -23,8 +23,7 @@ class ImageFileView extends StatelessWidget { return Container( clipBehavior: Clip.antiAlias, decoration: BoxDecoration( - color: backgroundColor ?? - Theme.of(context).colorScheme.background, + color: backgroundColor ?? Theme.of(context).colorScheme.background, borderRadius: borderRadius ?? BorderRadius.zero, ), child: imageFile.path == null diff --git a/pubspec.yaml b/pubspec.yaml index fc371dd..65e9635 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.0.2 +version: 1.0.3 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