mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: 增加重置设置类别
This commit is contained in:
@@ -272,11 +272,22 @@ class _AboutPageState extends State<AboutPage> {
|
||||
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('重置所有数据(含登录信息)'),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user