Browse Source

Fix error.

Caijinglong 5 years ago
parent
commit
2fd54b7185
3 changed files with 6 additions and 2 deletions
  1. 4
    0
      CHANGELOG.md
  2. 1
    1
      lib/src/delegate/sort_asset_delegate.dart
  3. 1
    1
      pubspec.yaml

+ 4
- 0
CHANGELOG.md View File

1
 # CHANGELOG
1
 # CHANGELOG
2
 
2
 
3
+## 0.4.3+1
4
+
5
+Fix a error for build.
6
+
3
 ## 0.4.3
7
 ## 0.4.3
4
 
8
 
5
 Rollback `photo_manager` to `0.4.3`.
9
 Rollback `photo_manager` to `0.4.3`.

+ 1
- 1
lib/src/delegate/sort_asset_delegate.dart View File

12
   @override
12
   @override
13
   void sort(List<AssetEntity> list) {
13
   void sort(List<AssetEntity> list) {
14
     list.sort((entity1, entity2) {
14
     list.sort((entity1, entity2) {
15
-      return entity2.createTime.compareTo(entity1.createTime);
15
+      return entity2.createDateTime.compareTo(entity1.createDateTime);
16
     });
16
     });
17
   }
17
   }
18
 }
18
 }

+ 1
- 1
pubspec.yaml View File

1
 name: photo
1
 name: photo
2
 description: image picker, multi picker support video/icloud asset, use flutter as ui, if you want to build custom ui, you just use photo_manager.
2
 description: image picker, multi picker support video/icloud asset, use flutter as ui, if you want to build custom ui, you just use photo_manager.
3
-version: 0.4.3
3
+version: 0.4.3+1
4
 author: caijinglong<cjl_spy@163.com>
4
 author: caijinglong<cjl_spy@163.com>
5
 homepage: https://github.com/CaiJingLong/flutter_photo
5
 homepage: https://github.com/CaiJingLong/flutter_photo
6
 
6