From 17f6ca7db3f0007869fbcfe707c084c4f96d8ee9 Mon Sep 17 00:00:00 2001 From: Nikolas Rimikis Date: Mon, 8 May 2023 15:30:19 +0200 Subject: [PATCH] neon: fix naming of NewsFeedIcon --- packages/neon/neon_news/lib/widgets/articles_view.dart | 2 +- packages/neon/neon_news/lib/widgets/feed_icon.dart | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/neon/neon_news/lib/widgets/articles_view.dart b/packages/neon/neon_news/lib/widgets/articles_view.dart index d7785a76..01a31bfc 100644 --- a/packages/neon/neon_news/lib/widgets/articles_view.dart +++ b/packages/neon/neon_news/lib/widgets/articles_view.dart @@ -137,7 +137,7 @@ class _NewsArticlesViewState extends State { ), child: NewsFeedIcon( feed: feed, - icon: 16, + size: 16, borderRadius: const BorderRadius.all(Radius.circular(2)), ), ), diff --git a/packages/neon/neon_news/lib/widgets/feed_icon.dart b/packages/neon/neon_news/lib/widgets/feed_icon.dart index cbe50f9e..fefdd53d 100644 --- a/packages/neon/neon_news/lib/widgets/feed_icon.dart +++ b/packages/neon/neon_news/lib/widgets/feed_icon.dart @@ -3,29 +3,29 @@ part of '../neon_news.dart'; class NewsFeedIcon extends StatelessWidget { const NewsFeedIcon({ required this.feed, - this.icon = 48, + this.size = 48, this.borderRadius, super.key, }); final NextcloudNewsFeed feed; - final double icon; + final double size; final BorderRadius? borderRadius; @override Widget build(final BuildContext context) => NeonImageWrapper( color: Colors.white, - size: Size.square(icon), + size: Size.square(size), borderRadius: borderRadius, child: feed.faviconLink != null && feed.faviconLink != '' ? NeonCachedUrlImage( url: feed.faviconLink!, - size: Size.square(icon), + size: Size.square(size), iconColor: Theme.of(context).colorScheme.primary, ) : Icon( Icons.rss_feed, - size: icon, + size: size, color: Theme.of(context).colorScheme.primary, ), );