diff --git a/lib/widgets/note_viewer.dart b/lib/widgets/note_viewer.dart index 68407afb..91ef9d0a 100644 --- a/lib/widgets/note_viewer.dart +++ b/lib/widgets/note_viewer.dart @@ -80,7 +80,7 @@ class NoteViewer extends StatelessWidget { data: note.body, // selectable: false, -> making this true breaks link navigation styleSheet: markdownStyleSheet, - onTapLink: (String link) async { + onTapLink: (String _, String link, String __) async { final linkResolver = LinkResolver(note); var linkedNote = linkResolver.resolve(link); diff --git a/pubspec.lock b/pubspec.lock index 9de00910..79fd623a 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -388,7 +388,7 @@ packages: name: flutter_markdown url: "https://pub.dartlang.org" source: hosted - version: "0.4.3" + version: "0.5.1" flutter_plugin_android_lifecycle: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index 3d1ab1f9..34baa55c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -37,7 +37,7 @@ dependencies: firebase_analytics: ^6.2.0 flutter_email_sender: ^3.0.1 flutter_emoji: ">= 2.0.0" - flutter_markdown: ^0.4.3 + flutter_markdown: ^0.5.1 flutter_plugin_android_lifecycle: ^1.0.8 # for fixing the build flutter_sentry: ^0.4.4 flutter_staggered_grid_view: ^0.3.0