Skip to content

Commit de0ba04

Browse files
committed
♻️ ✨ Support audio assets.
1 parent acac0f6 commit de0ba04

File tree

6 files changed

+412
-132
lines changed

6 files changed

+412
-132
lines changed

lib/src/provider/asset_entity_image_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,4 @@ class AssetEntityImageProvider extends ImageProvider<AssetEntityImageProvider> {
132132

133133
enum ImageFileType { jpg, png, gif, tiff, heic, other }
134134

135-
enum SpecialAssetType { video, audio, gif, heic }
135+
enum SpecialImageType { gif, heic }

lib/src/provider/asset_picker_provider.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,9 @@ class AssetPickerProvider extends ChangeNotifier {
240240
/// 加载更多资源
241241
Future<void> loadMoreAssets() async {
242242
final List<AssetEntity> assets = (await currentPathEntity.getAssetListPaged(
243-
currentAssetsListPage, pageSize))
243+
currentAssetsListPage,
244+
pageSize,
245+
))
244246
.toList();
245247
if (assets.isNotEmpty && currentAssets.contains(assets[0])) {
246248
return;

0 commit comments

Comments
 (0)