Skip to content

Commit d7bbe03

Browse files
committed
🐛 Fix mounted checks
1 parent 382727e commit d7bbe03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/provider/asset_picker_provider.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,13 @@ class DefaultAssetPickerProvider
311311
Singleton.sortPathDelegate = sortPathDelegate ?? SortPathDelegate.common;
312312
// Call [getAssetList] with route duration when constructing.
313313
Future<void>.delayed(initializeDelayDuration, () async {
314-
if (_mounted) {
314+
if (!_mounted) {
315315
return;
316316
}
317317

318318
await getPaths(onlyAll: true);
319319

320-
if (_mounted) {
320+
if (!_mounted) {
321321
return;
322322
}
323323

0 commit comments

Comments
 (0)