mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: image preview
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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()),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1917,7 +1917,7 @@ List<SettingsModel> get extraSettings => [
|
|||||||
SettingsModel(
|
SettingsModel(
|
||||||
settingsType: SettingsType.sw1tch,
|
settingsType: SettingsType.sw1tch,
|
||||||
title: '预览 Live Photo',
|
title: '预览 Live Photo',
|
||||||
subtitle: '开启则以视频形式预览Live Photo,否则预览静态图片',
|
subtitle: '开启则以视频形式预览 Live Photo,否则预览静态图片',
|
||||||
leading: Icon(Icons.image_outlined),
|
leading: Icon(Icons.image_outlined),
|
||||||
setKey: SettingBoxKey.enableLivePhoto,
|
setKey: SettingBoxKey.enableLivePhoto,
|
||||||
defaultVal: true,
|
defaultVal: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user