Chat message action on system text selection area

This commit is contained in:
2025-01-06 23:15:18 +08:00
parent e2027b1a32
commit 1f6bf33b0e
6 changed files with 68 additions and 28 deletions

View File

@ -879,13 +879,17 @@ class _PostContentBody extends StatelessWidget {
@override
Widget build(BuildContext context) {
if (data.body['content'] == null) return const SizedBox.shrink();
return MarkdownTextContent(
isSelectable: isSelectable,
final content = MarkdownTextContent(
isEnlargeSticker: true,
textScaler: isEnlarge ? TextScaler.linear(1.1) : null,
content: data.body['content'],
attachments: data.preload?.attachments,
);
if (isSelectable) {
return SelectionArea(child: content);
}
return content;
}
}