From cf4f9cf0aede36df94698bbfa0a6dc11165ae428 Mon Sep 17 00:00:00 2001 From: Alienjob Date: Thu, 28 Dec 2023 13:20:38 +0400 Subject: [PATCH] Mark problem with image saving on web --- lib/ui/page/home/widget/gallery_popup.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/ui/page/home/widget/gallery_popup.dart b/lib/ui/page/home/widget/gallery_popup.dart index ef427b5d2a1..78b4b68d73b 100644 --- a/lib/ui/page/home/widget/gallery_popup.dart +++ b/lib/ui/page/home/widget/gallery_popup.dart @@ -651,7 +651,12 @@ class _GalleryPopupState extends State constraints: const BoxConstraints(minWidth: 1, minHeight: 1), child: PlatformUtils.isWeb - ? WebImage(e.link, onForbidden: e.onError) + ? WebImage( + e.link, + onForbidden: e.onError, + // TODO: Wait for HTML to support specifying download name: + // https://github.com/whatwg/html/issues/2722 + ) : RetryImage( e.link, width: e.width?.toDouble(),