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! ^_^