From 1f2f00d49c2b0d26550d798a180d516c3387d951 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Tue, 22 Apr 2025 15:09:54 +0800 Subject: [PATCH] mod: later view forwarded video Closes #729 Signed-off-by: bggRGjQaUbCoE --- lib/pages/dynamics/widgets/author_panel.dart | 11 +++++++++++ lib/pages/dynamics/widgets/rich_node_panel.dart | 1 + 2 files changed, 12 insertions(+) diff --git a/lib/pages/dynamics/widgets/author_panel.dart b/lib/pages/dynamics/widgets/author_panel.dart index e6a2055d..3f16783a 100644 --- a/lib/pages/dynamics/widgets/author_panel.dart +++ b/lib/pages/dynamics/widgets/author_panel.dart @@ -240,6 +240,17 @@ class AuthorPanel extends StatelessWidget { _ => null, }; } catch (_) {} + if (bvid == null && item.orig != null) { + try { + bvid = switch (item.orig.type) { + 'DYNAMIC_TYPE_AV' => + item.orig.modules.moduleDynamic.major.archive.bvid, + 'DYNAMIC_TYPE_UGC_SEASON' => + item.orig.modules.moduleDynamic.major.ugcSeason.bvid, + _ => null, + }; + } catch (_) {} + } return Padding( padding: EdgeInsets.only(bottom: MediaQuery.of(context).padding.bottom), child: Column( diff --git a/lib/pages/dynamics/widgets/rich_node_panel.dart b/lib/pages/dynamics/widgets/rich_node_panel.dart index 607ff74f..41ff391a 100644 --- a/lib/pages/dynamics/widgets/rich_node_panel.dart +++ b/lib/pages/dynamics/widgets/rich_node_panel.dart @@ -257,6 +257,7 @@ InlineSpan? richNode(item, BuildContext context) { ); } else if (i.type == 'RICH_TEXT_NODE_TYPE_VIEW_PICTURE') { if (i.pics?.isNotEmpty == true) { + spanChildren.add(TextSpan(text: '\n')); spanChildren.add( WidgetSpan( child: LayoutBuilder(