fix: forwarded article

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-11-17 12:04:04 +08:00
parent 00c71ce692
commit 0953b985e1
2 changed files with 22 additions and 20 deletions

View File

@@ -33,25 +33,25 @@ Widget articlePanel(item, context, {floor = 1}) {
), ),
const SizedBox(height: 8), const SizedBox(height: 8),
], ],
// Text( Text(
// item.modules.moduleDynamic.major.opus.title, item.modules.moduleDynamic.major.opus.title,
// style: Theme.of(context) style: Theme.of(context)
// .textTheme .textTheme
// .titleMedium! .titleMedium!
// .copyWith(fontWeight: FontWeight.bold), .copyWith(fontWeight: FontWeight.bold),
// ), ),
// const SizedBox(height: 2), const SizedBox(height: 2),
// if (item.modules.moduleDynamic.major.opus.summary.text != if (item.modules.moduleDynamic.major.opus.summary.text !=
// 'undefined') ...[ 'undefined') ...[
// Text( Text(
// item.modules.moduleDynamic.major.opus.summary.richTextNodes.first item.modules.moduleDynamic.major.opus.summary.richTextNodes.first
// .text, .text,
// maxLines: 4, maxLines: 4,
// style: const TextStyle(height: 1.55), style: const TextStyle(height: 1.55),
// overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
// ), ),
// const SizedBox(height: 2), const SizedBox(height: 2),
// ], ],
picWidget(item, context) picWidget(item, context)
], ],
), ),

View File

@@ -125,7 +125,9 @@ Widget forWard(item, context, ctr, source, {floor = 1}) {
return videoSeasonWidget(item, context, 'archive', floor: floor); return videoSeasonWidget(item, context, 'archive', floor: floor);
// 文章 // 文章
case 'DYNAMIC_TYPE_ARTICLE': case 'DYNAMIC_TYPE_ARTICLE':
return articlePanel(item, context, floor: floor); return item is ItemOrigModel
? articlePanel(item, context, floor: floor)
: const SizedBox.shrink();
// return Container( // return Container(
// padding: // padding:
// const EdgeInsets.only(left: 10, top: 12, right: 10, bottom: 10), // const EdgeInsets.only(left: 10, top: 12, right: 10, bottom: 10),