fix(mobile): properly handle live photos locally (#29462)

* fix(mobile): properly handle live photos locally

* Added basic motion photo data tests

* Cover mismatched platforms and motion photos

* Revert unnecessary storage.repository changes

---------

Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
Adam Gastineau 2026-07-07 10:25:43 -07:00 committed by GitHub
parent daabab8c1c
commit a225c962de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 110 additions and 31 deletions

View file

@ -297,8 +297,7 @@ class _AssetTypeIcons extends StatelessWidget {
@override
Widget build(BuildContext context) {
final remoteAsset = asset is RemoteAsset ? asset as RemoteAsset : null;
final isLivePhoto = remoteAsset?.livePhotoVideoId != null;
final isLivePhoto = asset.isMotionPhoto;
return Column(
mainAxisSize: MainAxisSize.min,