SimpleUpgradeViewWidget constructor

const SimpleUpgradeViewWidget({
  1. required String title,
  2. required List<String> contents,
  3. Key? key,
  4. TextStyle? titleStyle,
  5. TextStyle? contentStyle,
  6. String? cancelText,
  7. TextStyle? cancelTextStyle,
  8. String? okText,
  9. TextStyle? okTextStyle,
  10. List<Color>? okBackgroundColors,
  11. Widget? progressBar,
  12. Color? progressBarColor,
  13. double borderRadius = 10,
  14. String? downloadUrl,
  15. Map<String, dynamic>? headers,
  16. bool? beta = false,
  17. bool force = false,
  18. String? iosAppId,
  19. AppMarketInfo? appMarketInfo,
  20. VoidCallback? onCancel,
  21. VoidCallback? onOk,
  22. DownloadProgressCallback? downloadProgress,
  23. DownloadStatusChangeCallback? downloadStatusChange,
})

Implementation

const SimpleUpgradeViewWidget({
  required this.title,
  required this.contents,
  super.key,
  this.titleStyle,
  this.contentStyle,
  this.cancelText,
  this.cancelTextStyle,
  this.okText,
  this.okTextStyle,
  this.okBackgroundColors,
  this.progressBar,
  this.progressBarColor,
  this.borderRadius = 10,
  this.downloadUrl,
  this.headers,
  this.beta = false,
  this.force = false,
  this.iosAppId,
  this.appMarketInfo,
  this.onCancel,
  this.onOk,
  this.downloadProgress,
  this.downloadStatusChange,
});