Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-01-29 13:35:51 +08:00
parent bcbfe5c849
commit 5979ddb60c
46 changed files with 3266 additions and 3293 deletions

View File

@@ -58,21 +58,19 @@ abstract final class ImageUtils {
if (status == PermissionStatus.denied ||
status == PermissionStatus.permanentlyDenied) {
SmartDialog.show(
builder: (context) {
return AlertDialog(
title: const Text('提示'),
content: const Text('存储权限未授权'),
actions: [
TextButton(
onPressed: () {
SmartDialog.dismiss();
openAppSettings();
},
child: const Text('去授权'),
),
],
);
},
builder: (context) => AlertDialog(
title: const Text('提示'),
content: const Text('存储权限未授权'),
actions: [
TextButton(
onPressed: () {
SmartDialog.dismiss();
openAppSettings();
},
child: const Text('去授权'),
),
],
),
);
return false;
} else {