Allow keep data on uninstalling

This commit is contained in:
LollipopKit
2021-11-02 19:49:29 +08:00
parent d38bad7802
commit ff76c6c539
4 changed files with 19 additions and 16 deletions

View File

@@ -39,8 +39,8 @@ Future<void> doUpdate(BuildContext context, {bool force = false}) async {
showSnackBarWithAction(
context,
update.min > BuildData.build
? '您的版本过旧,请及时更新'
: '${BuildData.name}有更新啦Ver${update.newest}\n${update.changelog}',
'更新',
? 'Your version is too old. \nPlease update to v${update.newest}.'
: 'Update: v${update.newest}available. \n${update.changelog}',
'Update',
() => openUrl(Platform.isAndroid ? update.android : update.ios));
}