diff --git a/CHANGELOG.md b/CHANGELOG.md index e69eff09..8af74669 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,9 @@ that can be found in the LICENSE file. --> ## Unreleased -*None.* +### Fixes + +- Allows assets changing when no path previously. ## 9.3.3 diff --git a/lib/src/delegates/asset_picker_builder_delegate.dart b/lib/src/delegates/asset_picker_builder_delegate.dart index cff1802c..aa85ec03 100644 --- a/lib/src/delegates/asset_picker_builder_delegate.dart +++ b/lib/src/delegates/asset_picker_builder_delegate.dart @@ -901,7 +901,7 @@ class DefaultAssetPickerBuilderDelegate if (assetsChangeRefreshPredicate != null) { return assetsChangeRefreshPredicate!(permission, call, path); } - return path?.isAll == true; + return path?.isAll ?? true; } if (!predicate()) {