File tree Expand file tree Collapse file tree 4 files changed +19
-12
lines changed Expand file tree Collapse file tree 4 files changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ that can be found in the LICENSE file. -->
4
4
5
5
# Changelog
6
6
7
+ ## 8.0.1
8
+
9
+ ### Fixes
10
+
11
+ - Fix not updated empty flag in ` DefaultAssetPickerProvider ` . (#353 )
12
+
7
13
## 8.0.0
8
14
9
15
To know more about breaking changes, see [ Migration Guide] [ ] .
Original file line number Diff line number Diff line change 1
1
name : wechat_assets_picker_demo
2
2
description : The demo project for the wechat_assets_picker package.
3
- version : 8.0.0+21
3
+ version : 8.0.1+22
4
4
publish_to : none
5
5
6
6
environment :
Original file line number Diff line number Diff line change @@ -449,17 +449,18 @@ class DefaultAssetPickerProvider
449
449
/// Get assets list from current path entity.
450
450
/// 从当前已选路径获取资源列表
451
451
Future <void > getAssetsFromCurrentPath () async {
452
- if (_currentPath != null && _paths.isNotEmpty) {
453
- final PathWrapper <AssetPathEntity > wrapper = _currentPath! ;
454
- final int assetCount =
455
- wrapper.assetCount ?? await wrapper.path.assetCountAsync;
456
- totalAssetsCount = assetCount;
457
- if (wrapper.assetCount == null ) {
458
- currentPath = _currentPath! .copyWith (assetCount: assetCount);
459
- }
460
- await getAssetsFromPath (0 , currentPath! .path);
461
- } else {
452
+ if (_currentPath == null || _paths.isEmpty) {
462
453
isAssetsEmpty = true ;
454
+ return ;
455
+ }
456
+ final PathWrapper <AssetPathEntity > wrapper = _currentPath! ;
457
+ final int assetCount =
458
+ wrapper.assetCount ?? await wrapper.path.assetCountAsync;
459
+ totalAssetsCount = assetCount;
460
+ isAssetsEmpty = assetCount == 0 ;
461
+ if (wrapper.assetCount == null ) {
462
+ currentPath = _currentPath! .copyWith (assetCount: assetCount);
463
463
}
464
+ await getAssetsFromPath (0 , currentPath! .path);
464
465
}
465
466
}
Original file line number Diff line number Diff line change 1
1
name : wechat_assets_picker
2
2
description : An audio/video/image picker in pure Dart which is the same with WeChat, support multi picking.
3
- version : 8.0.0
3
+ version : 8.0.1
4
4
homepage : https://github.com/fluttercandies/flutter_wechat_assets_picker
5
5
6
6
environment :
You can’t perform that action at this time.
0 commit comments