|
|
@ -4,18 +4,23 @@ class NewsFeedIcon extends StatelessWidget { |
|
|
|
const NewsFeedIcon({ |
|
|
|
const NewsFeedIcon({ |
|
|
|
required this.feed, |
|
|
|
required this.feed, |
|
|
|
this.size = 48, |
|
|
|
this.size = 48, |
|
|
|
|
|
|
|
this.borderRadius, |
|
|
|
super.key, |
|
|
|
super.key, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
final NewsFeed feed; |
|
|
|
final NewsFeed feed; |
|
|
|
final double size; |
|
|
|
final double size; |
|
|
|
|
|
|
|
final BorderRadius? borderRadius; |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
Widget build(final BuildContext context) => SizedBox( |
|
|
|
Widget build(final BuildContext context) => SizedBox( |
|
|
|
width: size, |
|
|
|
width: size, |
|
|
|
height: size, |
|
|
|
height: size, |
|
|
|
child: ColoredBox( |
|
|
|
child: DecoratedBox( |
|
|
|
|
|
|
|
decoration: BoxDecoration( |
|
|
|
color: Colors.white, |
|
|
|
color: Colors.white, |
|
|
|
|
|
|
|
borderRadius: borderRadius, |
|
|
|
|
|
|
|
), |
|
|
|
child: Center( |
|
|
|
child: Center( |
|
|
|
child: feed.faviconLink != null && feed.faviconLink != '' |
|
|
|
child: feed.faviconLink != null && feed.faviconLink != '' |
|
|
|
? CachedURLImage( |
|
|
|
? CachedURLImage( |
|
|
|