From 3186af7875832d59a38e9c080b541a183919bba6 Mon Sep 17 00:00:00 2001 From: kshib Date: Sat, 2 Mar 2024 16:53:46 +0530 Subject: [PATCH] follow user setting for feed thumbnails --- lib/pages/feed.dart | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/pages/feed.dart b/lib/pages/feed.dart index 04ab234..f4997df 100644 --- a/lib/pages/feed.dart +++ b/lib/pages/feed.dart @@ -71,15 +71,20 @@ class _FeedPageState extends State child: Flex( direction: Axis.vertical, children: [ - CachedNetworkImage( - imageUrl: article!.thumbnail, + Store.loadImagesSetting=="Always"?CachedNetworkImage( + imageUrl: article!.thumbnail, fit: BoxFit.contain, + progressIndicatorBuilder: (context, url, downloadProgress) { + return CircularProgressIndicator( + value: downloadProgress.progress, + ); + }, errorWidget: (context, url, error) { return SizedBox.shrink(); }, - ), + ):SizedBox.shrink(), ListTile( - title: Text(article.title), + title: Text(article!.title), leading: CachedNetworkImage( imageUrl: article.publisher.iconUrl, progressIndicatorBuilder: (context, url, downloadProgress) {