Browse Source

neon_news: Fix tile spacing

pull/429/head
jld3103 1 year ago
parent
commit
ce5739d41b
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 4
      packages/neon/neon_news/lib/widgets/feeds_view.dart
  2. 6
      packages/neon/neon_news/lib/widgets/folders_view.dart

4
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) ? Theme.of(context).textTheme.titleMedium!.copyWith(color: Theme.of(context).disabledColor)
: null, : 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( leading: NewsFeedIcon(
feed: feed, feed: feed,
borderRadius: const BorderRadius.all(Radius.circular(8)), borderRadius: const BorderRadius.all(Radius.circular(8)),

6
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) ? Theme.of(context).textTheme.titleMedium!.copyWith(color: Theme.of(context).disabledColor)
: null, : null,
), ),
subtitle: unreadCount > 0 subtitle: unreadCount > 0 ? Text(AppLocalizations.of(context).articlesUnread(unreadCount)) : const SizedBox(),
? Text(
AppLocalizations.of(context).articlesUnread(unreadCount),
)
: null,
leading: SizedBox.square( leading: SizedBox.square(
dimension: 48, dimension: 48,
child: Stack( child: Stack(

Loading…
Cancel
Save