|
|
@@ -8,6 +8,7 @@ import 'package:electronic_assistant/resource/colors.gen.dart';
|
|
|
import 'package:electronic_assistant/utils/common_style.dart';
|
|
|
import 'package:electronic_assistant/utils/expand.dart';
|
|
|
import 'package:electronic_assistant/utils/mmkv_util.dart';
|
|
|
+import 'package:electronic_assistant/utils/toast_util.dart';
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
@@ -173,7 +174,11 @@ class UpdateVersionDialog {
|
|
|
if (url == null) {
|
|
|
return;
|
|
|
}
|
|
|
- LauncherUrlUtil.launchHttpUrl(url);
|
|
|
+ try {
|
|
|
+ LauncherUrlUtil.launchHttpUrl(url);
|
|
|
+ } catch (e) {
|
|
|
+ ToastUtil.showToast('更新失败');
|
|
|
+ }
|
|
|
} else if (Platform.isIOS) {
|
|
|
//TODO ios 跳转苹果商店下载
|
|
|
}
|