opt: func

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-07 13:07:15 +08:00
parent 6353ecc13e
commit 286193f08f
99 changed files with 204 additions and 270 deletions

View File

@@ -50,7 +50,7 @@ class DownloadUtils {
if (status == PermissionStatus.denied ||
status == PermissionStatus.permanentlyDenied) {
if (!context.mounted) return false;
await showDialog(
showDialog(
context: context,
builder: (context) {
return AlertDialog(
@@ -58,7 +58,7 @@ class DownloadUtils {
content: const Text('存储权限未授权'),
actions: [
TextButton(
onPressed: () async {
onPressed: () {
openAppSettings();
},
child: const Text('去授权'),