-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
86 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v1.5.7 | ||
v1.5.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,3 @@ | ||
v1.5.7 | ||
- [x] 升级flutter到3.0.5 | ||
- [x] TG群炸了, 换成新的, 在这里通知一下 | ||
- [x] 更新发电功能, 点击小闪电点我发过电, 不捐助可以发电到8月 | ||
|
||
v1.5.6 | ||
- [x] 从服务器获取最新的分流 | ||
- [x] 优化排行榜/骑士榜/以及各个异步加载页的刷新逻辑 | ||
- [x] 优化注册表单 | ||
|
||
v1.5.5 | ||
|
||
- [x] 对历史记录页面进行优化 | ||
- [x] 对导入进行优化 | ||
- [x] 增加了批量导出ZIP/PKI到文件夹 | ||
- [x] 增加了从一个文件夹中导入所有ZIP/PKI的功能 | ||
- [x] 增加了发电页面, 对作者发过电的用户会展示发电特权图标 | ||
v1.5.8 | ||
- [x] 解决历史记录图片不刷新的问题 | ||
- [x] 增加退出是增加提示的选项(设置中寻找) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
import '../Common.dart'; | ||
import '../Method.dart'; | ||
|
||
const _propertyName = "willPopNotice"; | ||
|
||
late bool _willPopNotice; | ||
|
||
Future initWillPopNotice() async { | ||
_willPopNotice = (await method.loadProperty(_propertyName, "false")) == "true"; | ||
} | ||
|
||
bool willPopNotice() { | ||
return _willPopNotice; | ||
} | ||
|
||
Future<void> _chooseWillPopNotice(BuildContext context) async { | ||
String? result = | ||
await chooseListDialog<String>(context, "退出APP的提示", ["是", "否"]); | ||
if (result != null) { | ||
var target = result == "是"; | ||
await method.saveProperty(_propertyName, "$target"); | ||
_willPopNotice = target; | ||
} | ||
} | ||
|
||
Widget willPopNoticeSetting() { | ||
return StatefulBuilder( | ||
builder: (BuildContext context, void Function(void Function()) setState) { | ||
return ListTile( | ||
title: const Text("退出APP的提示"), | ||
subtitle: Text(_willPopNotice ? "是" : "否"), | ||
onTap: () async { | ||
await _chooseWillPopNotice(context); | ||
setState(() {}); | ||
}, | ||
); | ||
}, | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters