SimpleAppUpgradeWidget constructor
const
SimpleAppUpgradeWidget({
- required String title,
- TextStyle titleStyle = const TextStyle(),
- required String contents,
- required TextStyle contentStyle,
- String cancelText = '以后再说',
- required TextStyle cancelTextStyle,
- String okText = '确定升级',
- required TextStyle okTextStyle,
- required Widget progressBar,
- required Color progressBarColor,
- double borderRadius = 10,
- required String downloadUrl,
- bool force = false,
- required String iosAppId,
- required AppMarketInfo appMarketInfo,
- VoidCallback? onCancel,
- VoidCallback? onOk,
- DownloadProgressCallback? downloadProgress,
- DownloadStatusChangeCallback? downloadStatusChange,
- String? md5,
Implementation
const SimpleAppUpgradeWidget(
{required this.title,
this.titleStyle=const TextStyle(),
required this.contents,
required this.contentStyle,
this.cancelText='以后再说',
required this.cancelTextStyle,
this.okText='确定升级',
required this.okTextStyle,
required this.progressBar,
required this.progressBarColor,
this.borderRadius = 10,
required this.downloadUrl,
this.force = false,
required this.iosAppId,
required this.appMarketInfo,
this.onCancel,
this.onOk,
this.downloadProgress,
this.downloadStatusChange,
this.md5
});