From 618f8359ae804a2f153585c515d7878478101d13 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Thu, 28 Sep 2023 06:42:26 +0200 Subject: [PATCH] fix(neon_notes): Fix scrolling markdown previews Signed-off-by: jld3103 --- packages/neon/neon_notes/lib/pages/note.dart | 22 +++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/packages/neon/neon_notes/lib/pages/note.dart b/packages/neon/neon_notes/lib/pages/note.dart index 96254f7a..8df84b92 100644 --- a/packages/neon/neon_notes/lib/pages/note.dart +++ b/packages/neon/neon_notes/lib/pages/note.dart @@ -164,16 +164,18 @@ class _NotesNotePageState extends State { 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, + ); + } + }, + ), ), ), ),