mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: later view forwarded video
Closes #729 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user