File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ that can be found in the LICENSE file. -->
9
9
### New Features
10
10
11
11
- Add ` initializeDelayDuration ` for ` DefaultAssetPickerProvider ` . (#341 )
12
+ - Add ` sortPathsByModifiedDate ` . (#342 )
12
13
13
14
## 8.0.0-dev.1
14
15
Original file line number Diff line number Diff line change @@ -330,13 +330,13 @@ class DefaultAssetPickerProvider
330
330
} else {
331
331
_paths[index] = wrapper;
332
332
}
333
- // Use sync method to avoid unnecessary wait.
334
- getAssetCountFromPath (wrapper);
335
- getThumbnailFromPath (wrapper);
336
333
}
337
-
338
334
// Sort path using sort path delegate.
339
335
Singleton .sortPathDelegate.sort (_paths);
336
+ // Use sync method to avoid unnecessary wait.
337
+ _paths
338
+ ..forEach (getAssetCountFromPath)
339
+ ..forEach (getThumbnailFromPath);
340
340
341
341
// Set first path entity as current path entity.
342
342
if (_paths.isNotEmpty) {
You can’t perform that action at this time.
0 commit comments