|
|
|
@ -337,10 +337,10 @@ class _MainPage extends State<MainPage> with WidgetsBindingObserver {
|
|
|
|
|
PackageInfo packageInfo = await PackageInfo.fromPlatform(); |
|
|
|
|
BaseData<AppUpdate> baseData = await apiService.appVersion().catchError((onError) {}); |
|
|
|
|
if (baseData != null && baseData.isSuccess) { |
|
|
|
|
baseData.data.appLastVersion = "1.0.5"; |
|
|
|
|
baseData.data.appLastVersionUp = "1.0.1"; |
|
|
|
|
// baseData.data.appLastVersion = "1.0.95"; |
|
|
|
|
// baseData.data.appLastVersionUp = "1.0.95"; |
|
|
|
|
if(AppUtils.versionCompare(packageInfo.version,baseData.data?.appLastVersion) |
|
|
|
|
&& AppUtils.versionCompare(value.getString("appLastVersion")??"1.0.0",baseData.data?.appLastVersion)){ |
|
|
|
|
&& AppUtils.versionCompare(value.getString("appLastVersion"),baseData.data?.appLastVersion)){ |
|
|
|
|
showDialog( |
|
|
|
|
context: context, |
|
|
|
|
barrierDismissible: false, |
|
|
|
|