From 181f989403e875fca3e93605969f278bcd9756ab Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sun, 31 Jul 2022 09:39:33 +0200 Subject: [PATCH] neon: Improve article list item --- .../src/apps/news/widgets/articles_view.dart | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/packages/neon/lib/src/apps/news/widgets/articles_view.dart b/packages/neon/lib/src/apps/news/widgets/articles_view.dart index 77c01450..d8ed4540 100644 --- a/packages/neon/lib/src/apps/news/widgets/articles_view.dart +++ b/packages/neon/lib/src/apps/news/widgets/articles_view.dart @@ -192,14 +192,6 @@ class _NewsArticlesViewState extends State { ), 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 { 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!,