From 2b7ef97337dc398f4f254975d1a26e690c0b330e Mon Sep 17 00:00:00 2001 From: Alexandre Beaujour Date: Mon, 21 Oct 2024 10:55:56 +0200 Subject: [PATCH] can click links on release widget --- CHANGELOG.md | 6 ++++++ lib/widget/common/release_widget.dart | 8 +++++++- pubspec.yaml | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15b56ae..dbcf400 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,12 @@ ### Removed +## [0.4.4] - 2024-10-21 + +### Fixed + +- Can click the links on the releases. + ## [0.4.3] - 2024-10-21 ### Fixed diff --git a/lib/widget/common/release_widget.dart b/lib/widget/common/release_widget.dart index 643f6d9..f2d2d4a 100644 --- a/lib/widget/common/release_widget.dart +++ b/lib/widget/common/release_widget.dart @@ -14,6 +14,7 @@ import 'package:flutter_redux_hooks/flutter_redux_hooks.dart'; import 'package:http/http.dart' as http; import 'package:intl/intl.dart'; import 'package:package_info_plus/package_info_plus.dart'; +import 'package:url_launcher/url_launcher.dart'; class ReleaseWidget extends HookWidget { const ReleaseWidget({Key? key}) : super(key: key); @@ -165,7 +166,12 @@ class ReleaseWidget extends HookWidget { children: [ MarkdownBody( selectable: true, - data: releases[index].body), + data: releases[index].body, + onTapLink: (text, url, title) { + if (url != null) { + launchUrl(Uri.parse(url)); + } + }), ElevatedButton.icon( onPressed: isInstalled || loadingInstall.value != null diff --git a/pubspec.yaml b/pubspec.yaml index 0c10f57..257f9be 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 0.4.3 +version: 0.4.4 environment: sdk: '>=2.19.4 <3.0.0'