Skip to content

Commit b5d5631

Browse files
committed
change launch mode to nonBrowserApplication
1 parent 4a3ae66 commit b5d5631

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/maps_launcher.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ class MapsLauncher {
6161
/// Returns a Future that resolves to true if the maps application
6262
/// was launched successfully, false otherwise.
6363
static Future<bool> launchQuery(String query) {
64-
return launchUrl(createQueryUri(query));
64+
return launchUrl(createQueryUri(query),
65+
mode: LaunchMode.externalNonBrowserApplication);
6566
}
6667

6768
/// Launches the maps application for this platform.
@@ -70,6 +71,7 @@ class MapsLauncher {
7071
/// was launched successfully, false otherwise.
7172
static Future<bool> launchCoordinates(double latitude, double longitude,
7273
[String? label]) {
73-
return launchUrl(createCoordinatesUri(latitude, longitude, label));
74+
return launchUrl(createCoordinatesUri(latitude, longitude, label),
75+
mode: LaunchMode.externalNonBrowserApplication);
7476
}
7577
}

0 commit comments

Comments
 (0)