From e4f32033510261d23cebefbdd9f20fc03b50c933 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Mon, 31 Mar 2025 21:41:15 +0800 Subject: [PATCH] opt: show pubTs Signed-off-by: bggRGjQaUbCoE --- lib/pages/dynamics/widgets/author_panel.dart | 6 ++-- .../dynamics/widgets/author_panel_grpc.dart | 30 +++++++++---------- lib/pages/dynamics/widgets/video_panel.dart | 4 +-- 3 files changed, 18 insertions(+), 22 deletions(-) diff --git a/lib/pages/dynamics/widgets/author_panel.dart b/lib/pages/dynamics/widgets/author_panel.dart index e7bbe06b..dc0a5aef 100644 --- a/lib/pages/dynamics/widgets/author_panel.dart +++ b/lib/pages/dynamics/widgets/author_panel.dart @@ -97,10 +97,8 @@ class AuthorPanel extends StatelessWidget { ), child: Row( children: [ - Text(item.isForwarded == true - ? Utils.dateFormat(item.modules.moduleAuthor.pubTs) - : item.modules.moduleAuthor.pubTime), - if (item.modules.moduleAuthor.pubTime != '' && + Text(Utils.dateFormat(item.modules.moduleAuthor.pubTs)), + if (item.modules.moduleAuthor.pubTs != '' && item.modules.moduleAuthor.pubAction != '') const Text(' '), Text(item.modules.moduleAuthor.pubAction), diff --git a/lib/pages/dynamics/widgets/author_panel_grpc.dart b/lib/pages/dynamics/widgets/author_panel_grpc.dart index 0b2aedb0..8e86c2a9 100644 --- a/lib/pages/dynamics/widgets/author_panel_grpc.dart +++ b/lib/pages/dynamics/widgets/author_panel_grpc.dart @@ -75,21 +75,21 @@ class AuthorPanelGrpc extends StatelessWidget { ), ], ), - DefaultTextStyle.merge( - style: TextStyle( - color: Theme.of(context).colorScheme.outline, - fontSize: Theme.of(context).textTheme.labelSmall!.fontSize, - ), - child: Row( - children: [ - // Text(item.modules.first.moduleAuthor.pubTime), - // if (item.modules.first.moduleAuthor.pubTime != '' && - // item.modules.first.moduleAuthor.pubAction != '') - // const Text(' '), - // Text(item.modules.first.moduleAuthor.pubAction), - ], - ), - ) + // DefaultTextStyle.merge( + // style: TextStyle( + // color: Theme.of(context).colorScheme.outline, + // fontSize: Theme.of(context).textTheme.labelSmall!.fontSize, + // ), + // child: Row( + // children: [ + // Text(item.modules.first.moduleAuthor.pubTime), + // if (item.modules.first.moduleAuthor.pubTime != '' && + // item.modules.first.moduleAuthor.pubAction != '') + // const Text(' '), + // Text(item.modules.first.moduleAuthor.pubAction), + // ], + // ), + // ) ], ), const Spacer(), diff --git a/lib/pages/dynamics/widgets/video_panel.dart b/lib/pages/dynamics/widgets/video_panel.dart index 29fa4dca..26c4fe21 100644 --- a/lib/pages/dynamics/widgets/video_panel.dart +++ b/lib/pages/dynamics/widgets/video_panel.dart @@ -152,9 +152,7 @@ Widget videoSeasonWidget(item, context, type, {floor = 1}) { ), const SizedBox(width: 6), Text( - item.modules.moduleAuthor.pubTs != null - ? Utils.dateFormat(item.modules.moduleAuthor.pubTs) - : item.modules.moduleAuthor.pubTime, + Utils.dateFormat(item.modules.moduleAuthor.pubTs), style: TextStyle( color: Theme.of(context).colorScheme.outline, fontSize: Theme.of(context).textTheme.labelSmall!.fontSize),