Skip to content

Commit 5d0de51

Browse files
authored
Merge pull request #93 from Lenny4/dev
can click links on release widget
2 parents 91138cf + e1b0fb5 commit 5d0de51

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010

1111
### Removed
1212

13+
## [0.4.4] - 2024-10-21
14+
15+
### Fixed
16+
17+
- Can click the links on the releases.
18+
1319
## [0.4.3] - 2024-10-21
1420

1521
### Fixed

lib/widget/common/release_widget.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import 'package:flutter_redux_hooks/flutter_redux_hooks.dart';
1414
import 'package:http/http.dart' as http;
1515
import 'package:intl/intl.dart';
1616
import 'package:package_info_plus/package_info_plus.dart';
17+
import 'package:url_launcher/url_launcher.dart';
1718

1819
class ReleaseWidget extends HookWidget {
1920
const ReleaseWidget({Key? key}) : super(key: key);
@@ -165,7 +166,12 @@ class ReleaseWidget extends HookWidget {
165166
children: [
166167
MarkdownBody(
167168
selectable: true,
168-
data: releases[index].body),
169+
data: releases[index].body,
170+
onTapLink: (text, url, title) {
171+
if (url != null) {
172+
launchUrl(Uri.parse(url));
173+
}
174+
}),
169175
ElevatedButton.icon(
170176
onPressed: isInstalled ||
171177
loadingInstall.value != null

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1616
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
1717
# In Windows, build-name is used as the major, minor, and patch parts
1818
# of the product and file versions while build-number is used as the build suffix.
19-
version: 0.4.3
19+
version: 0.4.4
2020

2121
environment:
2222
sdk: '>=2.19.4 <3.0.0'

0 commit comments

Comments
 (0)