Skip to content

Commit

Permalink
Update lib/src/provider/asset_picker_provider.dart
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Li <[email protected]>
  • Loading branch information
LeGoffMael and AlexV525 authored Sep 15, 2023
1 parent 6cc64e2 commit 1f7daf7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/provider/asset_picker_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,9 @@ class DefaultAssetPickerProvider
final int assetCount =
wrapper.assetCount ?? await wrapper.path.assetCountAsync;
// If the picker was disposed (#492), stop fetching the assets
if (!mounted) return;
if (!mounted) {
return;
}
totalAssetsCount = assetCount;
isAssetsEmpty = assetCount == 0;
if (wrapper.assetCount == null) {
Expand Down

0 comments on commit 1f7daf7

Please sign in to comment.