SimpleAppUpgradeWidget constructor

const SimpleAppUpgradeWidget({
  1. required String title,
  2. TextStyle titleStyle = const TextStyle(),
  3. required String contents,
  4. required TextStyle contentStyle,
  5. String cancelText = '以后再说',
  6. required TextStyle cancelTextStyle,
  7. String okText = '确定升级',
  8. required TextStyle okTextStyle,
  9. required Widget progressBar,
  10. required Color progressBarColor,
  11. double borderRadius = 10,
  12. required String downloadUrl,
  13. bool force = false,
  14. required String iosAppId,
  15. required AppMarketInfo appMarketInfo,
  16. VoidCallback? onCancel,
  17. VoidCallback? onOk,
  18. DownloadProgressCallback? downloadProgress,
  19. DownloadStatusChangeCallback? downloadStatusChange,
  20. 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
    });