showDownloadFailDialog method

dynamic showDownloadFailDialog()

Implementation

showDownloadFailDialog() {
  if (isRetryDialogShow()) {
    return;
  }
  isDownloading = false;
  _progress = 0.0;
  if (_dialog != null) {
    _dialog!.update(-0.01);
  }
  confirmDialog(
      name: retryDialogName,
      shrink: true,
      // topIcon: Image.asset(
      //   BrandColorUtil.getLogo(),
      //   width: 40.w,
      //   height: 40.w,
      // ),
      // showClose: true,
      title: getUpdateTitle(),
      content: richLinkText(
          getDownloadTip1(),
          getDownloadTip2(),
          getDownloadTip3(),
          updateEntity!.downloadUrl),
      // left: 'Download in browser',
      // leftColor: Colors.black,
      // onLeft: () {
      //   Get.back();
      //   launchUrl(Uri.parse(updateEntity!.downloadUrl),
      //       mode: LaunchMode.externalApplication);
      // },
      right: getRetryTxt(),
      rightColor: Colors.red,
      onRight: () {
        Get.back();
        retryDownloadCount = -1;
        onUpdate();
      });
}