opt: pm share

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-28 12:11:20 +08:00
parent 7f93b42a1b
commit aed45b08ac
6 changed files with 36 additions and 27 deletions

View File

@@ -630,18 +630,21 @@ class _ArticlePageState extends State<ArticlePage>
return;
}
}
PageUtils.pmShare(
content: {
"id": _articleCtr.commentId,
"title": "- 哔哩哔哩专栏",
"headline": _articleCtr.summary.title!, // throw
"source": 6,
"thumb": _articleCtr.summary.cover!,
"author": _articleCtr.summary.author!.name,
"author_id":
_articleCtr.summary.author!.mid.toString(),
},
);
if (mounted) {
PageUtils.pmShare(
this.context,
content: {
"id": _articleCtr.commentId,
"title": "- 哔哩哔哩专栏",
"headline": _articleCtr.summary.title!, // throw
"source": 6,
"thumb": _articleCtr.summary.cover!,
"author": _articleCtr.summary.author!.name,
"author_id":
_articleCtr.summary.author!.mid.toString(),
},
);
}
} catch (e) {
SmartDialog.showToast(e.toString());
}