From 14ba9d5a5f4a042240c0515b9f054b82a2dfcef7 Mon Sep 17 00:00:00 2001 From: Alex Li Date: Mon, 23 Sep 2024 20:42:46 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20Improve=20code=20usages=20?= =?UTF-8?q?consistency=20with=20assets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ lib/src/widgets/locally_available_builder.dart | 3 ++- pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e64ce5c..657537f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## 1.0.5 + +* Improve code usages consistency with assets. + ## 1.0.4 * `LocallyAvailableBuilder` can now build thumbnails and with more fields to customize. diff --git a/lib/src/widgets/locally_available_builder.dart b/lib/src/widgets/locally_available_builder.dart index fae0788..2af38f1 100644 --- a/lib/src/widgets/locally_available_builder.dart +++ b/lib/src/widgets/locally_available_builder.dart @@ -83,7 +83,7 @@ class _LocallyAvailableBuilderState extends State { void _markAndPresentError(Object exception, StackTrace stack) { _hasError = true; safeSetState(() {}); - FlutterError.presentError( + FlutterError.reportError( FlutterErrorDetails( exception: exception, stack: stack, @@ -96,6 +96,7 @@ class _LocallyAvailableBuilderState extends State { try { _isLocallyAvailable = await widget.asset.isLocallyAvailable( isOrigin: widget.isOriginal, + withSubtype: widget.withSubtype, ); } catch (e, s) { _markAndPresentError(e, s); diff --git a/pubspec.yaml b/pubspec.yaml index 40ddd44..f8b73ae 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: wechat_picker_library description: "A foundation library for wechat_*_picker, provides extensions, themes, and widgets." -version: 1.0.4 +version: 1.0.5 topics: - picker - wechat