From 893e42303895337e880e082f8fa38bf703e43c49 Mon Sep 17 00:00:00 2001 From: PuPha Date: Sun, 10 Nov 2024 09:12:19 +0700 Subject: [PATCH] fix widget thumbnail --- 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); }