A framework for building convergent cross-platform Nextcloud clients using Flutter.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
806 B

part of '../neon_news.dart';
3 years ago
class NewsFeedIcon extends StatelessWidget {
const NewsFeedIcon({
required this.feed,
this.size = largeIconSize,
this.borderRadius,
3 years ago
super.key,
});
final news.Feed feed;
final double size;
final BorderRadius? borderRadius;
3 years ago
@override
Widget build(final BuildContext context) {
final faviconLink = feed.faviconLink;
return NeonImageWrapper(
size: Size.square(size),
borderRadius: borderRadius,
child: faviconLink != null && faviconLink.isNotEmpty
? NeonUrlImage(
url: faviconLink,
size: Size.square(size),
)
: Icon(
Icons.rss_feed,
size: size,
color: Theme.of(context).colorScheme.primary,
),
);
}
3 years ago
}