Make text selectable when writing comments, fixes #157

This commit is contained in:
shilangyu 2021-04-06 15:42:12 +02:00
parent c847a3aaa6
commit 63486e0c88
1 changed files with 6 additions and 2 deletions

View File

@ -31,13 +31,17 @@ class WriteComment extends HookWidget {
final body = () {
final text = comment?.content ?? post.body;
if (text == null) return const SizedBox.shrink();
return MarkdownText(text, instanceHost: post.instanceHost);
return MarkdownText(
text,
instanceHost: post.instanceHost,
selectable: true,
);
}();
if (post != null) {
return Column(
children: [
Text(
SelectableText(
post.name,
style: const TextStyle(fontSize: 15, fontWeight: FontWeight.w600),
),