From dc3eb25ab4bad6a89e3bbac5eaa3adc33a935d4a Mon Sep 17 00:00:00 2001 From: orz12 Date: Sat, 20 Jul 2024 19:23:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E7=B1=BB=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/about/index.dart | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/lib/pages/about/index.dart b/lib/pages/about/index.dart index fdca201c..08030dae 100644 --- a/lib/pages/about/index.dart +++ b/lib/pages/about/index.dart @@ -272,11 +272,22 @@ class _AboutPageState extends State { onPressed: () { Get.back(); GStorage.setting.clear(); - GStorage.localCache.clear(); GStorage.video.clear(); SmartDialog.showToast('重置成功'); }, - child: const Text('确定'), + child: const Text('重置可导出的设置'), + ), + TextButton( + onPressed: () { + Get.back(); + GStorage.userInfo.clear(); + GStorage.setting.clear(); + GStorage.localCache.clear(); + GStorage.video.clear(); + GStorage.historyWord.clear(); + SmartDialog.showToast('重置成功'); + }, + child: const Text('重置所有数据(含登录信息)'), ), ], );