Browse Source

Merge pull request #862 from nextcloud/fix/neon_notes/preview-scrolling

fix(neon_notes): Fix scrolling markdown previews
pull/865/head
Kate 1 year ago committed by GitHub
parent
commit
ada21df9c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 22
      packages/neon/neon_notes/lib/pages/note.dart

22
packages/neon/neon_notes/lib/pages/note.dart

@ -164,16 +164,18 @@ class _NotesNotePageState extends State<NotesNotePage> {
border: InputBorder.none,
),
)
: MarkdownBody(
data: _contentController.text,
onTapLink: (final text, final href, final title) async {
if (href != null) {
await launchUrlString(
href,
mode: LaunchMode.externalApplication,
);
}
},
: SingleChildScrollView(
child: MarkdownBody(
data: _contentController.text,
onTapLink: (final text, final href, final title) async {
if (href != null) {
await launchUrlString(
href,
mode: LaunchMode.externalApplication,
);
}
},
),
),
),
),

Loading…
Cancel
Save