Skip to content

Commit ff692de

Browse files
committed
Launch url using external application
1 parent 54aacab commit ff692de

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# manUp
22

3+
## [9.3.2]
4+
5+
- Launch url in external browser
6+
37
## [9.3.1]
48

59
- Fix update url not being passed to dialog callback

lib/src/mixin/man_up_dialog_mixin.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ part of manup;
33
/// Show app dialog based on manUp status
44
mixin DialogMixin<T extends StatefulWidget> on State<T> {
55
Future<bool> _launchUrl(String uri) {
6-
return canLaunchUrl(Uri.parse(uri)).then((canLaunch) =>
7-
canLaunch ? launchUrl(Uri.parse(uri)) : Future.value(canLaunch));
6+
return canLaunchUrl(Uri.parse(uri)).then((canLaunch) => canLaunch
7+
? launchUrl(Uri.parse(uri), mode: LaunchMode.externalApplication)
8+
: Future.value(canLaunch));
89
}
910

1011
/// Show an appropriate dialog for the given [ManUpStatus]. Can be overridden to show custom dialogs.

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: manup
22
description: Mandatory update for Flutter Apps that prompts or forces app update by querying a hosted JSON file.
3-
version: 9.3.1
3+
version: 9.3.2
44
homepage: https://github.com/NextFaze/flutter_manup
55

66
environment:

0 commit comments

Comments
 (0)