Fix update things

This commit is contained in:
LollipopKit
2021-11-02 20:58:50 +08:00
parent 72c1901989
commit 7c34530821
3 changed files with 15 additions and 11 deletions

View File

@@ -39,8 +39,8 @@ Future<void> doUpdate(BuildContext context, {bool force = false}) async {
showSnackBarWithAction(
context,
update.min > BuildData.build
? 'Your version is too old. \nPlease update to v${update.newest}.'
: 'Update: v${update.newest}available. \n${update.changelog}',
? 'Your version is too old. \nPlease update to v1.0.${update.newest}.'
: 'Update: v1.0.${update.newest} available. \n${update.changelog}',
'Update',
() => openUrl(Platform.isAndroid ? update.android : update.ios));
}