diff --git a/lib/pages/dynamics/widgets/article_panel.dart b/lib/pages/dynamics/widgets/article_panel.dart index 73e26fda..c48c619f 100644 --- a/lib/pages/dynamics/widgets/article_panel.dart +++ b/lib/pages/dynamics/widgets/article_panel.dart @@ -33,25 +33,25 @@ Widget articlePanel(item, context, {floor = 1}) { ), const SizedBox(height: 8), ], - // Text( - // item.modules.moduleDynamic.major.opus.title, - // style: Theme.of(context) - // .textTheme - // .titleMedium! - // .copyWith(fontWeight: FontWeight.bold), - // ), - // const SizedBox(height: 2), - // if (item.modules.moduleDynamic.major.opus.summary.text != - // 'undefined') ...[ - // Text( - // item.modules.moduleDynamic.major.opus.summary.richTextNodes.first - // .text, - // maxLines: 4, - // style: const TextStyle(height: 1.55), - // overflow: TextOverflow.ellipsis, - // ), - // const SizedBox(height: 2), - // ], + Text( + item.modules.moduleDynamic.major.opus.title, + style: Theme.of(context) + .textTheme + .titleMedium! + .copyWith(fontWeight: FontWeight.bold), + ), + const SizedBox(height: 2), + if (item.modules.moduleDynamic.major.opus.summary.text != + 'undefined') ...[ + Text( + item.modules.moduleDynamic.major.opus.summary.richTextNodes.first + .text, + maxLines: 4, + style: const TextStyle(height: 1.55), + overflow: TextOverflow.ellipsis, + ), + const SizedBox(height: 2), + ], picWidget(item, context) ], ), diff --git a/lib/pages/dynamics/widgets/forward_panel.dart b/lib/pages/dynamics/widgets/forward_panel.dart index efbc2f3e..65e3fd3f 100644 --- a/lib/pages/dynamics/widgets/forward_panel.dart +++ b/lib/pages/dynamics/widgets/forward_panel.dart @@ -125,7 +125,9 @@ Widget forWard(item, context, ctr, source, {floor = 1}) { return videoSeasonWidget(item, context, 'archive', floor: floor); // 文章 case 'DYNAMIC_TYPE_ARTICLE': - return articlePanel(item, context, floor: floor); + return item is ItemOrigModel + ? articlePanel(item, context, floor: floor) + : const SizedBox.shrink(); // return Container( // padding: // const EdgeInsets.only(left: 10, top: 12, right: 10, bottom: 10),