From ce5739d41b332d92ed2d67a648d332d62f62a808 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Wed, 28 Jun 2023 08:05:21 +0200 Subject: [PATCH] neon_news: Fix tile spacing --- packages/neon/neon_news/lib/widgets/feeds_view.dart | 4 +++- packages/neon/neon_news/lib/widgets/folders_view.dart | 6 +----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/neon/neon_news/lib/widgets/feeds_view.dart b/packages/neon/neon_news/lib/widgets/feeds_view.dart index 3ea45c39..4717f0b7 100644 --- a/packages/neon/neon_news/lib/widgets/feeds_view.dart +++ b/packages/neon/neon_news/lib/widgets/feeds_view.dart @@ -51,7 +51,9 @@ class NewsFeedsView extends StatelessWidget { ? Theme.of(context).textTheme.titleMedium!.copyWith(color: Theme.of(context).disabledColor) : null, ), - subtitle: feed.unreadCount! > 0 ? Text(AppLocalizations.of(context).articlesUnread(feed.unreadCount!)) : null, + subtitle: feed.unreadCount! > 0 + ? Text(AppLocalizations.of(context).articlesUnread(feed.unreadCount!)) + : const SizedBox(), leading: NewsFeedIcon( feed: feed, borderRadius: const BorderRadius.all(Radius.circular(8)), diff --git a/packages/neon/neon_news/lib/widgets/folders_view.dart b/packages/neon/neon_news/lib/widgets/folders_view.dart index 6e90ba8e..2a9305dc 100644 --- a/packages/neon/neon_news/lib/widgets/folders_view.dart +++ b/packages/neon/neon_news/lib/widgets/folders_view.dart @@ -51,11 +51,7 @@ class NewsFoldersView extends StatelessWidget { ? Theme.of(context).textTheme.titleMedium!.copyWith(color: Theme.of(context).disabledColor) : null, ), - subtitle: unreadCount > 0 - ? Text( - AppLocalizations.of(context).articlesUnread(unreadCount), - ) - : null, + subtitle: unreadCount > 0 ? Text(AppLocalizations.of(context).articlesUnread(unreadCount)) : const SizedBox(), leading: SizedBox.square( dimension: 48, child: Stack(