fix(mobile): do not try to load video as image (#25495)

* only load original for images

* early return
This commit is contained in:
Mert
2026-01-24 18:38:31 -05:00
committed by GitHub
parent 1803692eab
commit 5414302350
2 changed files with 12 additions and 8 deletions

View File

@@ -120,7 +120,7 @@ ImageProvider getFullImageProvider(BaseAsset asset, {Size size = const Size(1080
} else {
throw ArgumentError("Unsupported asset type: ${asset.runtimeType}");
}
provider = RemoteFullImageProvider(assetId: assetId, thumbhash: thumbhash);
provider = RemoteFullImageProvider(assetId: assetId, thumbhash: thumbhash, assetType: asset.type);
}
return provider;