opt: share article

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-27 21:55:21 +08:00
parent 6d7b0e8dd5
commit 8fe6e3f4b7
4 changed files with 48 additions and 3 deletions

View File

@@ -620,10 +620,17 @@ class _ArticlePageState extends State<ArticlePage>
],
),
),
if (_articleCtr.type == 'read' && _articleCtr.stats.value != null)
if (_articleCtr.commentType == 12 &&
_articleCtr.stats.value != null)
PopupMenuItem(
onTap: () {
onTap: () async {
try {
if (_articleCtr.summary.cover == null) {
final res = await _articleCtr.getArticleCover();
if (res != true) {
return;
}
}
PageUtils.pmShare(
content: {
"id": _articleCtr.commentId,