show feed name in post subtext

This commit is contained in:
Jan 2022-12-30 00:44:54 +01:00
parent e610286d69
commit 95c82092f8
Signed by: Lea
GPG key ID: 1BAFFE8347019C42

View file

@ -34,8 +34,12 @@ class HomepagePost extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text(post.title, style: Theme.of(context).textTheme.titleMedium, overflow: TextOverflow.ellipsis), Text(post.title, style: Theme.of(context).textTheme.titleMedium, overflow: TextOverflow.ellipsis),
Row( ClipRRect(
clipBehavior: Clip.antiAlias,
child: Row(
children: [ children: [
Text('${post.api.cache.feeds.get(post.feedId)?.title}'),
const Text(' \u2022 '),
post.author.isNotEmpty post.author.isNotEmpty
? Text(post.author) ? Text(post.author)
: const Text('Unknown author', style: TextStyle(fontStyle: FontStyle.italic)), : const Text('Unknown author', style: TextStyle(fontStyle: FontStyle.italic)),
@ -43,6 +47,7 @@ class HomepagePost extends StatelessWidget {
Text(formatDate(post.createdOnTime)), Text(formatDate(post.createdOnTime)),
], ],
), ),
),
], ],
), ),
) )