Skip to content

Commit

Permalink
fix: changelog links are unclickable (#994)
Browse files Browse the repository at this point in the history
Fixes #992
  • Loading branch information
Feichtmeier authored Nov 1, 2024
1 parent 10ecac9 commit ee60398
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/patch_notes/patch_notes_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ class _PatchNotesDialogState extends State<PatchNotesDialog> {
future: _markdown,
builder: (context, snapshot) => snapshot.hasData
? MarkdownBody(
onTapLink: (text, href, title) {
if (href == null) return;
final uri = Uri.tryParse(href);
if (uri == null) return;
launchUrl(uri);
},
data: snapshot.data!,
)
: const Center(
Expand Down

0 comments on commit ee60398

Please sign in to comment.