Skip to content

Commit

Permalink
follow user setting for feed thumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
ksh-b committed Mar 2, 2024
1 parent ed01bc3 commit 3186af7
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lib/pages/feed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,20 @@ class _FeedPageState extends State<FeedPage>
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) {
Expand Down

0 comments on commit 3186af7

Please sign in to comment.