opt: image preview

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-28 17:03:17 +08:00
parent f5d7dc6b6a
commit 959d4de78a
3 changed files with 10 additions and 4 deletions

View File

@@ -162,7 +162,7 @@ Widget imageview(
}, },
), ),
), ),
if (picArr[index].liveUrl?.isNotEmpty == true) if (picArr[index].isLivePhoto)
const PBadge( const PBadge(
text: 'Live', text: 'Live',
right: 8, right: 8,

View File

@@ -468,8 +468,14 @@ class _InteractiveviewerGalleryState extends State<InteractiveviewerGallery>
// }); // });
// }, // },
), ),
SourceType.livePhoto => SourceType.livePhoto => Obx(() => currentIndex.value == index
IgnorePointer(child: Video(controller: _videoController!)), ? IgnorePointer(
child: Video(
controller: _videoController!,
fill: Colors.transparent,
),
)
: const SizedBox.shrink()),
}, },
), ),
); );