|
|
|
@ -13,13 +13,16 @@ class NewsFeedIcon extends StatelessWidget {
|
|
|
|
|
final BorderRadius? borderRadius; |
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
Widget build(final BuildContext context) => NeonImageWrapper( |
|
|
|
|
Widget build(final BuildContext context) { |
|
|
|
|
final faviconLink = feed.faviconLink; |
|
|
|
|
|
|
|
|
|
return NeonImageWrapper( |
|
|
|
|
color: Colors.white, |
|
|
|
|
size: Size.square(size), |
|
|
|
|
borderRadius: borderRadius, |
|
|
|
|
child: feed.faviconLink != null && feed.faviconLink != '' |
|
|
|
|
child: faviconLink != null && faviconLink.isNotEmpty |
|
|
|
|
? NeonCachedUrlImage( |
|
|
|
|
url: feed.faviconLink!, |
|
|
|
|
url: faviconLink, |
|
|
|
|
size: Size.square(size), |
|
|
|
|
iconColor: Theme.of(context).colorScheme.primary, |
|
|
|
|
) |
|
|
|
@ -29,4 +32,5 @@ class NewsFeedIcon extends StatelessWidget {
|
|
|
|
|
color: Theme.of(context).colorScheme.primary, |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|