Browse Source

Merge pull request #429 from provokateurin/fix/news-tile-spacing

neon_news: Fix tile spacing
pull/438/head
Kate 1 year ago committed by GitHub
parent
commit
753c41c5a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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