Language: 中文 | English
At present, the plugin is only used by Android, iOS.
sdk: ^3.5.0
flutter: ">=3.24.0"- Add
upgrade_utiltopubspec.yamldependencies.
dependencies:
upgrade_util: ^latest_version- Get the package by executing the flutter command.
flutter pub get
- Introduce
import 'package:upgrade_util/upgrade_util.dart';Popups are implemented by using UpgradeOption.
| Name | Type | Description | Default |
|---|---|---|---|
| parameters | Map<String, dynamic>? |
Custom parameters | null |
Popups are implemented by using IOSUpgradeOption.
| Name | Type | Description | Default |
|---|---|---|---|
| appleId | String? |
Apple ID | required |
| mode | IOSOpenMode |
Open Mode. | required |
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 |
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! ^_^