Browse Source

fix(neon_notes): Fix scrolling markdown previews

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/862/head
jld3103 1 year ago
parent
commit
618f8359ae
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  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, border: InputBorder.none,
), ),
) )
: MarkdownBody( : SingleChildScrollView(
data: _contentController.text, child: MarkdownBody(
onTapLink: (final text, final href, final title) async { data: _contentController.text,
if (href != null) { onTapLink: (final text, final href, final title) async {
await launchUrlString( if (href != null) {
href, await launchUrlString(
mode: LaunchMode.externalApplication, href,
); mode: LaunchMode.externalApplication,
} );
}, }
},
),
), ),
), ),
), ),

Loading…
Cancel
Save