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

@@ -229,7 +229,7 @@ Commit Hash: ${BuildConfig.commitHash}''',
children: [
ListTile(
title: const Text('导出'),
onTap: () async {
onTap: () {
Get.back();
String res = jsonEncode(Accounts.account.toMap());
Utils.copyText(res);
@@ -246,7 +246,7 @@ Commit Hash: ${BuildConfig.commitHash}''',
return;
}
if (!context.mounted) return;
await showDialog(
showDialog(
context: context,
builder: (context) {
return AlertDialog(
@@ -312,9 +312,9 @@ Commit Hash: ${BuildConfig.commitHash}''',
children: [
ListTile(
title: const Text('导出设置至剪贴板'),
onTap: () async {
onTap: () {
Get.back();
String data = await GStorage.exportAllSettings();
String data = GStorage.exportAllSettings();
Utils.copyText(data);
},
),