Skip to content

Commit 506c7b8

Browse files
committed
⚡️ Make switchPath method async
1 parent 1d363e5 commit 506c7b8

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
@@ -363,12 +363,12 @@ class DefaultAssetPickerProvider
363363
}
364364

365365
@override
366-
void switchPath(AssetPathEntity pathEntity) {
366+
Future<void> switchPath(AssetPathEntity pathEntity) async {
367367
_isSwitchingPath = false;
368368
_currentPathEntity = pathEntity;
369369
_totalAssetsCount = pathEntity.assetCount;
370370
notifyListeners();
371-
getAssetsFromEntity(0, currentPathEntity!);
371+
await getAssetsFromEntity(0, currentPathEntity!);
372372
}
373373

374374
@override

0 commit comments

Comments
 (0)