fix: permission dialog (#1799)

* don't request photo permission on A13+

saving to system album requires no additional permission

* fix permission dialog

* update

Signed-off-by: dom <githubaccount56556@proton.me>

---------

Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
KoishiMoe
2026-01-09 11:07:39 +08:00
committed by GitHub
parent fffce10b31
commit dbc11c36df
6 changed files with 29 additions and 58 deletions

View File

@@ -117,10 +117,7 @@ void imageSaveDialog({
iconBtn(
tooltip: '保存封面图',
onPressed: () async {
bool saveStatus = await ImageUtils.downloadImg(
context,
[cover],
);
bool saveStatus = await ImageUtils.downloadImg([cover]);
if (saveStatus) {
SmartDialog.dismiss();
}

View File

@@ -437,10 +437,7 @@ class _InteractiveviewerGalleryState extends State<InteractiveviewerGallery>
ListTile(
onTap: () {
Get.back();
ImageUtils.downloadImg(
this.context,
[item.url],
);
ImageUtils.downloadImg([item.url]);
},
dense: true,
title: const Text('保存图片', style: TextStyle(fontSize: 14)),
@@ -459,7 +456,6 @@ class _InteractiveviewerGalleryState extends State<InteractiveviewerGallery>
onTap: () {
Get.back();
ImageUtils.downloadImg(
this.context,
widget.sources.map((item) => item.url).toList(),
);
},
@@ -471,7 +467,6 @@ class _InteractiveviewerGalleryState extends State<InteractiveviewerGallery>
onTap: () {
Get.back();
ImageUtils.downloadLivePhoto(
context: this.context,
url: item.url,
liveUrl: item.liveUrl!,
width: item.width!,
@@ -503,7 +498,7 @@ class _InteractiveviewerGalleryState extends State<InteractiveviewerGallery>
),
PopupMenuItem(
height: 42,
onTap: () => ImageUtils.downloadImg(context, [item.url]),
onTap: () => ImageUtils.downloadImg([item.url]),
child: const Text('保存图片', style: TextStyle(fontSize: 14)),
),
PopupMenuItem(
@@ -515,7 +510,6 @@ class _InteractiveviewerGalleryState extends State<InteractiveviewerGallery>
PopupMenuItem(
height: 42,
onTap: () => ImageUtils.downloadLivePhoto(
context: context,
url: item.url,
liveUrl: item.liveUrl!,
width: item.width!,