Skip to content

Commit

Permalink
can click links on release widget
Browse files Browse the repository at this point in the history
  • Loading branch information
Lenny4 committed Oct 21, 2024
1 parent 8e1d8fc commit 2b7ef97
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion lib/widget/common/release_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 2b7ef97

Please sign in to comment.