Browse Source

neon: Improve article list item

pull/50/head
jld3103 2 years ago
parent
commit
181f989403
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 20
      packages/neon/lib/src/apps/news/widgets/articles_view.dart

20
packages/neon/lib/src/apps/news/widgets/articles_view.dart

@ -192,14 +192,6 @@ class _NewsArticlesViewState extends State<NewsArticlesView> {
),
subtitle: Row(
children: [
Text(
CustomTimeAgo.format(
DateTime.fromMillisecondsSinceEpoch(article.pubDate! * 1000),
),
),
const SizedBox(
width: 16,
),
Container(
margin: const EdgeInsets.only(
top: 8,
@ -212,6 +204,18 @@ class _NewsArticlesViewState extends State<NewsArticlesView> {
borderRadius: const BorderRadius.all(Radius.circular(2)),
),
),
Text(
CustomTimeAgo.format(
DateTime.fromMillisecondsSinceEpoch(article.pubDate! * 1000),
),
style: const TextStyle(
fontWeight: FontWeight.w300,
fontSize: 12,
),
),
const SizedBox(
width: 5,
),
Flexible(
child: Text(
feed.title!,

Loading…
Cancel
Save