Skip to content

Commit

Permalink
⚡️ Improve code usages consistency with assets
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Sep 23, 2024
1 parent 8c5bb63 commit 14ba9d5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 2 additions & 1 deletion lib/src/widgets/locally_available_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class _LocallyAvailableBuilderState extends State<LocallyAvailableBuilder> {
void _markAndPresentError(Object exception, StackTrace stack) {
_hasError = true;
safeSetState(() {});
FlutterError.presentError(
FlutterError.reportError(
FlutterErrorDetails(
exception: exception,
stack: stack,
Expand All @@ -96,6 +96,7 @@ class _LocallyAvailableBuilderState extends State<LocallyAvailableBuilder> {
try {
_isLocallyAvailable = await widget.asset.isLocallyAvailable(
isOrigin: widget.isOriginal,
withSubtype: widget.withSubtype,
);
} catch (e, s) {
_markAndPresentError(e, s);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 14ba9d5

Please sign in to comment.