mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-02-21 15:44:30 +01:00
update readme
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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."),
|
||||
|
||||
@@ -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你可以手动下拉刷新。"),
|
||||
|
||||
@@ -1330,6 +1330,16 @@ class S {
|
||||
args: [],
|
||||
);
|
||||
}
|
||||
|
||||
/// `Update`
|
||||
String get update {
|
||||
return Intl.message(
|
||||
'Update',
|
||||
name: 'update',
|
||||
desc: '',
|
||||
args: [],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class AppLocalizationDelegate extends LocalizationsDelegate<S> {
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
@@ -126,5 +126,6 @@
|
||||
"restoreSuccess": "恢复成功,需要重启App来应用更改",
|
||||
"clickSee": "点击查看",
|
||||
"feedback": "反馈",
|
||||
"feedbackOnGithub": "如果你有任何问题,请在GitHub反馈"
|
||||
"feedbackOnGithub": "如果你有任何问题,请在GitHub反馈",
|
||||
"update": "更新"
|
||||
}
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user