Skip to content

Commit 6cb738a

Browse files
committed
feat(account): display source logos in followed sources list
- Replace default source icon with network image for source logos - Add error handling to fall back to default icon if image loading fails - Implement sizing and clipping for consistent logo appearance
1 parent 63a87ac commit 6cb738a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

lib/account/view/followed_contents/sources/followed_sources_list_page.dart

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,19 @@ class FollowedSourcesListPage extends StatelessWidget {
7272
itemBuilder: (context, index) {
7373
final source = followedSources[index];
7474
return ListTile(
75-
leading: const Icon(Icons.source_outlined),
75+
leading: SizedBox(
76+
width: 40,
77+
height: 40,
78+
child: ClipRRect(
79+
borderRadius: BorderRadius.circular(AppSpacing.sm),
80+
child: Image.network(
81+
source.logoUrl,
82+
fit: BoxFit.cover,
83+
errorBuilder: (context, error, stackTrace) =>
84+
const Icon(Icons.source_outlined),
85+
),
86+
),
87+
),
7688
title: Text(source.name),
7789
subtitle: Text(
7890
source.description,

0 commit comments

Comments
 (0)