new_version_check
Flutter 插件,用于在本地和应用商店中获取应用的当前版本。 以及没有多余的东西
特点
1) Get a version in the AppStore
2) Get a version in the Playmarket
3) Get the current app version
入门
import 'package:new_version_check/new_version_check.dart';
用法
var newVersionPlus = NewVersionCheck(iOSAppStoreCountry: 'ru');
var status = await newVersionPlus.getVersionStatus();
String? appStoreLink = status?.appStoreLink;
String? localVersion = status?.localVersion;
String? storeVersion = status?.storeVersion;
bool? canUpdate = status?.canUpdate;
附加信息
要使此软件包正常运行,您必须将您的应用发布到 Appstore 或 Playmarket