Make post body selectable, fixes #190

This commit is contained in:
shilangyu 2021-04-06 15:48:56 +02:00
parent 63486e0c88
commit 3609570df8
1 changed files with 7 additions and 3 deletions

View File

@ -415,9 +415,13 @@ class PostWidget extends HookWidget {
linkPreview(), linkPreview(),
if (post.post.body != null && fullPost) if (post.post.body != null && fullPost)
Padding( Padding(
padding: const EdgeInsets.all(10), padding: const EdgeInsets.all(10),
child: MarkdownText(post.post.body, child: MarkdownText(
instanceHost: instanceHost)), post.post.body,
instanceHost: instanceHost,
selectable: true,
),
),
if (post.post.body != null && !fullPost) if (post.post.body != null && !fullPost)
LayoutBuilder( LayoutBuilder(
builder: (context, constraints) { builder: (context, constraints) {