opt: show pubTs

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-31 21:41:15 +08:00
parent d6b388ad5c
commit e4f3203351
3 changed files with 18 additions and 22 deletions

View File

@@ -97,10 +97,8 @@ class AuthorPanel extends StatelessWidget {
), ),
child: Row( child: Row(
children: [ children: [
Text(item.isForwarded == true Text(Utils.dateFormat(item.modules.moduleAuthor.pubTs)),
? Utils.dateFormat(item.modules.moduleAuthor.pubTs) if (item.modules.moduleAuthor.pubTs != '' &&
: item.modules.moduleAuthor.pubTime),
if (item.modules.moduleAuthor.pubTime != '' &&
item.modules.moduleAuthor.pubAction != '') item.modules.moduleAuthor.pubAction != '')
const Text(' '), const Text(' '),
Text(item.modules.moduleAuthor.pubAction), Text(item.modules.moduleAuthor.pubAction),

View File

@@ -75,21 +75,21 @@ class AuthorPanelGrpc extends StatelessWidget {
), ),
], ],
), ),
DefaultTextStyle.merge( // DefaultTextStyle.merge(
style: TextStyle( // style: TextStyle(
color: Theme.of(context).colorScheme.outline, // color: Theme.of(context).colorScheme.outline,
fontSize: Theme.of(context).textTheme.labelSmall!.fontSize, // fontSize: Theme.of(context).textTheme.labelSmall!.fontSize,
), // ),
child: Row( // child: Row(
children: [ // children: [
// Text(item.modules.first.moduleAuthor.pubTime), // Text(item.modules.first.moduleAuthor.pubTime),
// if (item.modules.first.moduleAuthor.pubTime != '' && // if (item.modules.first.moduleAuthor.pubTime != '' &&
// item.modules.first.moduleAuthor.pubAction != '') // item.modules.first.moduleAuthor.pubAction != '')
// const Text(' '), // const Text(' '),
// Text(item.modules.first.moduleAuthor.pubAction), // Text(item.modules.first.moduleAuthor.pubAction),
], // ],
), // ),
) // )
], ],
), ),
const Spacer(), const Spacer(),

View File

@@ -152,9 +152,7 @@ Widget videoSeasonWidget(item, context, type, {floor = 1}) {
), ),
const SizedBox(width: 6), const SizedBox(width: 6),
Text( Text(
item.modules.moduleAuthor.pubTs != null Utils.dateFormat(item.modules.moduleAuthor.pubTs),
? Utils.dateFormat(item.modules.moduleAuthor.pubTs)
: item.modules.moduleAuthor.pubTime,
style: TextStyle( style: TextStyle(
color: Theme.of(context).colorScheme.outline, color: Theme.of(context).colorScheme.outline,
fontSize: Theme.of(context).textTheme.labelSmall!.fontSize), fontSize: Theme.of(context).textTheme.labelSmall!.fontSize),