opt opus rich text

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-19 11:56:24 +08:00
parent a360212dc7
commit 8fd62cf2f3
7 changed files with 173 additions and 99 deletions

View File

@@ -130,13 +130,14 @@ TextSpan? richNode(
break;
// 表情
case 'RICH_TEXT_NODE_TYPE_EMOJI' when (i.emoji != null):
final size = i.emoji!.size * 20.0;
spanChildren.add(
WidgetSpan(
child: NetworkImgLayer(
src: i.emoji!.webpUrl ?? i.emoji!.gifUrl ?? i.emoji!.iconUrl,
src: i.emoji!.url,
type: ImageType.emote,
width: (i.emoji!.size ?? 1) * 20,
height: (i.emoji!.size ?? 1) * 20,
width: size,
height: size,
),
),
);