update readme

This commit is contained in:
Junyuan Feng
2022-05-25 13:51:37 +08:00
parent 9cbd29d3c1
commit 3ed476275f
21 changed files with 51 additions and 28 deletions

View File

@@ -57,7 +57,7 @@ Future<void> doUpdate(BuildContext context, {bool force = false}) async {
update.min > BuildData.build
? 'Your version is too old. \nPlease update to v1.0.$newest.'
: 'Update: v1.0.$newest available. \n${update.changelog}',
'Update', () async {
s.update, () async {
if (Platform.isAndroid) {
await RUpgrade.upgrade(update.android,
fileName: update.android.split('/').last, isAutoRequestInstall: true);

View File

@@ -2,9 +2,9 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 148;
static const int build = 149;
static const String engine =
"Flutter 3.0.1 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision fb57da5f94 (5 days ago) • 2022-05-19 15:50:29 -0700\nEngine • revision caaafc5604\nTools • Dart 2.17.1 • DevTools 2.12.2\n";
static const String buildAt = "2022-05-25 13:19:00.526108";
static const int modifications = 0;
static const String buildAt = "2022-05-25 13:35:39.361656";
static const int modifications = 4;
}

View File

@@ -210,6 +210,7 @@ class MessageLookup extends MessageLookupByLibrary {
"unknownError": MessageLookupByLibrary.simpleMessage("Unknown error"),
"unkownConvertMode":
MessageLookupByLibrary.simpleMessage("Unknown convert mode"),
"update": MessageLookupByLibrary.simpleMessage("Update"),
"updateAll": MessageLookupByLibrary.simpleMessage("Update all"),
"updateIntervalEqual0": MessageLookupByLibrary.simpleMessage(
"You set to 0, will not update automatically.\nYou can pull to refresh manually."),

View File

@@ -183,6 +183,7 @@ class MessageLookup extends MessageLookupByLibrary {
"unknown": MessageLookupByLibrary.simpleMessage("未知"),
"unknownError": MessageLookupByLibrary.simpleMessage("未知错误"),
"unkownConvertMode": MessageLookupByLibrary.simpleMessage("未知转换模式"),
"update": MessageLookupByLibrary.simpleMessage("更新"),
"updateAll": MessageLookupByLibrary.simpleMessage("更新全部"),
"updateIntervalEqual0": MessageLookupByLibrary.simpleMessage(
"你设置为0服务器状态不会自动刷新。\n你可以手动下拉刷新。"),

View File

@@ -1330,6 +1330,16 @@ class S {
args: [],
);
}
/// `Update`
String get update {
return Intl.message(
'Update',
name: 'update',
desc: '',
args: [],
);
}
}
class AppLocalizationDelegate extends LocalizationsDelegate<S> {

View File

@@ -126,5 +126,6 @@
"restoreSuccess": "Restore success. Restart app to apply.",
"clickSee": "Click here",
"feedback": "Feedback",
"feedbackOnGithub": "If you have any questions, please feedback on Github."
"feedbackOnGithub": "If you have any questions, please feedback on Github.",
"update": "Update"
}

View File

@@ -126,5 +126,6 @@
"restoreSuccess": "恢复成功需要重启App来应用更改",
"clickSee": "点击查看",
"feedback": "反馈",
"feedbackOnGithub": "如果你有任何问题请在GitHub反馈"
"feedbackOnGithub": "如果你有任何问题请在GitHub反馈",
"update": "更新"
}

View File

@@ -87,7 +87,10 @@ class _AptManagePageState extends State<AptManagePage>
),
[
TextButton(
onPressed: () => Navigator.of(context).pop(),
onPressed: () {
Navigator.of(context).pop();
Navigator.of(context).pop();
},
child: Text(s.cancel)),
TextButton(
onPressed: () => onSubmitted(),