From fcb261ecb1f8938cf0b147391928088c8aabdbec Mon Sep 17 00:00:00 2001 From: Nguyen Phuoc Sang <47568867+ppupha@users.noreply.github.com> Date: Sun, 10 Nov 2024 21:50:03 +0700 Subject: [PATCH] fix widget thumbnail (#2315) --- lib/util/exhibition_ext.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/util/exhibition_ext.dart b/lib/util/exhibition_ext.dart index 1d7837436..430def9c3 100644 --- a/lib/util/exhibition_ext.dart +++ b/lib/util/exhibition_ext.dart @@ -172,7 +172,9 @@ extension ArtworkExt on Artwork { String get thumbnailURL => getFFUrl(thumbnailURI); String get dailyThumbnailURL { - final dailyThumbnailURI = thumbnailDisplay ?? thumbnailURI; + final dailyThumbnailURI = (thumbnailDisplay?.isNotEmpty == true) + ? thumbnailDisplay! + : thumbnailURI; return getFFUrl(dailyThumbnailURI, variant: CloudFlareVariant.l.value); }