Let the rendered markdown be selectable

This commit is contained in:
Vishesh Handa
2020-06-10 16:09:16 +02:00
parent 45562a5d8d
commit 4fc7c18e98

View File

@ -59,6 +59,7 @@ class NoteViewer extends StatelessWidget {
padding: const EdgeInsets.only(top: 8.0, bottom: 8.0), padding: const EdgeInsets.only(top: 8.0, bottom: 8.0),
child: MarkdownBody( child: MarkdownBody(
data: note.body, data: note.body,
selectable: true,
styleSheet: markdownStyleSheet, styleSheet: markdownStyleSheet,
onTapLink: (String link) { onTapLink: (String link) {
if (link.startsWith('./')) { if (link.startsWith('./')) {