We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51ae9dd commit bce3e20Copy full SHA for bce3e20
packages/url_launcher/url_launcher/lib/src/legacy_api.dart
@@ -78,7 +78,7 @@ Future<bool> launch(
78
final bool isWebURL =
79
url != null && (url.scheme == 'http' || url.scheme == 'https');
80
81
- if ((forceSafariVC ?? forceWebView) && !isWebURL) {
+ if (((forceSafariVC ?? false) || forceWebView) && !isWebURL) {
82
throw PlatformException(
83
code: 'NOT_A_WEB_SCHEME',
84
message: 'To use webview or safariVC, you need to pass '
0 commit comments