This commit is contained in:
lollipopkit
2023-06-27 14:40:10 +08:00
parent 92e2e2a75f
commit 6d6048bc5c
6 changed files with 33 additions and 20 deletions

View File

@@ -60,11 +60,11 @@ Future<void> doUpdate(BuildContext context, {bool force = false}) async {
if (update.build.min.current! > BuildData.build) {
showRoundDialog(
context: context,
child: Text(s.updateTipTooLow(newest)),
child: Text('Current version is too low\nplease update to v$newest'),
actions: [
TextButton(
onPressed: () => _doUpdate(url, context, s),
child: Text(s.ok),
child: const Text('ok'),
)
],
);
@@ -73,7 +73,7 @@ Future<void> doUpdate(BuildContext context, {bool force = false}) async {
showSnackBarWithAction(
context,
'${s.updateTip(newest)} \n${update.changelog.current}',
'Update: v$newest\n${update.changelog.current}',
s.update,
() => _doUpdate(url, context, s),
);