appUpgrade static method
dynamic
appUpgrade(
- BuildContext context,
- AppUpgradeInfo appUpgradeInfo, {
- TextStyle? titleStyle,
- TextStyle? contentStyle,
- String cancelText = "以后再说",
- TextStyle? cancelTextStyle,
- String okText = "",
- TextStyle? okTextStyle,
- Color? progressBarColor,
- String iosAppId = "立即更新",
- VoidCallback? onCancel,
- VoidCallback? onOk,
- DownloadProgressCallback? downloadProgress,
- DownloadStatusChangeCallback? downloadStatusChange,
Implementation
static appUpgrade(
BuildContext context,
AppUpgradeInfo appUpgradeInfo, {
TextStyle? titleStyle,
TextStyle? contentStyle,
String cancelText = "以后再说",
TextStyle? cancelTextStyle,
String okText = "",
TextStyle? okTextStyle,
Color? progressBarColor,
String iosAppId="立即更新",
VoidCallback? onCancel,
VoidCallback? onOk,
DownloadProgressCallback? downloadProgress,
DownloadStatusChangeCallback? downloadStatusChange,
}) {
return _showUpgradeDialog(
context, appUpgradeInfo.title, appUpgradeInfo.contents,
apkDownloadUrl: appUpgradeInfo.appDownloadUrl,
force: appUpgradeInfo.force,
titleStyle: titleStyle,
contentStyle: contentStyle,
cancelText: cancelText,
cancelTextStyle: cancelTextStyle,
okText: okText,
okTextStyle: okTextStyle,
downloadApkName: appUpgradeInfo.appDownloadName,
onCancel: onCancel,
onOk: onOk,
downloadProgress: downloadProgress,
downloadStatusChange: downloadStatusChange);
}