show feed name in post subtext
This commit is contained in:
parent
e610286d69
commit
95c82092f8
|
@ -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)),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue