mod: later view forwarded video

Closes #729

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-22 15:09:54 +08:00
parent 3afdd9d3f3
commit 1f2f00d49c
2 changed files with 12 additions and 0 deletions

View File

@@ -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(

View File

@@ -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(