upgrade_util 3.0.2
upgrade_util: ^3.0.2 copied to clipboard
A plug-in for application upgrades, which implements the method of jumping to the store and the function of installing after downloading the APK.
Flutter Upgrade Util #
Language: δΈζ | English
At present, the plugin is only used by Android, iOS.
Preparing for use #
Version constraints #
sdk: ^3.5.0
flutter: ">=3.24.0"
Rely #
- Add
upgrade_util
topubspec.yaml
dependencies.
dependencies:
upgrade_util: ^latest_version
- Get the package by executing the flutter command.
flutter pub get
- Introduce
import 'package:upgrade_util/upgrade_util.dart';
Usage #
UpgradeOption #
Popups are implemented by using UpgradeOption
.
Name | Type | Description | Default |
---|---|---|---|
parameters | Map<String, dynamic>? |
Custom parameters | null |
IOSUpgradeOption #
Popups are implemented by using IOSUpgradeOption
.
Name | Type | Description | Default |
---|---|---|---|
appleId | String? |
Apple ID | required |
mode | IOSOpenMode |
Open Mode. | required |
AndroidUpgradeOption #
Popups are implemented by using AndroidUpgradeOption
.
Name | Type | Description | Default |
---|---|---|---|
brand | AndroidBrand |
The brand. | required |
packageName | String? |
The package name. | null |
link | String? |
Custom link. | null |
isUseDownloadUrl | bool |
Whether to use download url. | false |
downloadUrl | String? |
Download url. | null |
Method #
To jump to the App Store or the application market, use the openStore
method
If you like my project, please in the upper right corner of the project "Star". Your support is my biggest encouragement! ^_^