Skip to content

Commit 6a4e36e

Browse files
committed
🚑️ Fix wrong conditions judging when obtaining path thumbnails
Fix #269.
1 parent f3e8ed8 commit 6a4e36e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/provider/asset_picker_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ class DefaultAssetPickerProvider
393393
}
394394
final AssetEntity asset = assets.single;
395395
// Obtain the thumbnail only when the asset is image or video.
396-
if (asset.type != AssetType.image || asset.type != AssetType.video) {
396+
if (asset.type != AssetType.image && asset.type != AssetType.video) {
397397
return null;
398398
}
399399
final Uint8List? assetData = await asset.thumbnailDataWithSize(

0 commit comments

Comments
 (0)