mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
fix dyn with title only
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -41,12 +41,19 @@ TextSpan? richNode(
|
|||||||
// 动态页面 richTextNodes 层级可能与主页动态层级不同
|
// 动态页面 richTextNodes 层级可能与主页动态层级不同
|
||||||
richTextNodes = summary?.richTextNodes;
|
richTextNodes = summary?.richTextNodes;
|
||||||
if (title != null && title.isNotEmpty) {
|
if (title != null && title.isNotEmpty) {
|
||||||
spanChildren.add(
|
if (richTextNodes == null || richTextNodes.isEmpty) {
|
||||||
TextSpan(
|
return TextSpan(
|
||||||
text: '$title\n',
|
text: title,
|
||||||
style: const TextStyle(fontWeight: FontWeight.bold),
|
style: const TextStyle(fontWeight: FontWeight.bold),
|
||||||
),
|
);
|
||||||
);
|
} else {
|
||||||
|
spanChildren.add(
|
||||||
|
TextSpan(
|
||||||
|
text: '$title\n',
|
||||||
|
style: const TextStyle(fontWeight: FontWeight.bold),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user