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
904 B

part of '../neon_news.dart';
2 years ago
class NewsFeedIcon extends StatelessWidget {
const NewsFeedIcon({
required this.feed,
this.size = 48,
this.borderRadius,
2 years ago
super.key,
});
final NextcloudNewsFeed feed;
2 years ago
final double size;
final BorderRadius? borderRadius;
2 years ago
@override
Widget build(final BuildContext context) => ImageWrapper(
color: Colors.white,
2 years ago
width: size,
height: size,
borderRadius: borderRadius,
child: feed.faviconLink != null && feed.faviconLink != ''
? CachedURLImage(
url: feed.faviconLink!,
height: size,
width: size,
iconColor: Theme.of(context).colorScheme.primary,
)
: Icon(
Icons.rss_feed,
size: size,
color: Theme.of(context).colorScheme.primary,
),
2 years ago
);
}