This commit is contained in:
Lorenzo Pichilli 2022-04-28 21:17:44 +02:00
parent 18c3e04fd2
commit c947ad0e5f

View File

@ -94,7 +94,8 @@ class ChromeSafariBrowser {
assert(url.toString().isNotEmpty); assert(url.toString().isNotEmpty);
this.throwIsAlreadyOpened(message: 'Cannot open $url!'); this.throwIsAlreadyOpened(message: 'Cannot open $url!');
if (!kIsWeb && defaultTargetPlatform == TargetPlatform.iOS) { if (!kIsWeb && defaultTargetPlatform == TargetPlatform.iOS) {
assert(['http', 'https'].contains(url.scheme), 'The specified URL has an unsupported scheme. Only HTTP and HTTPS URLs are supported on iOS.'); assert(['http', 'https'].contains(url.scheme),
'The specified URL has an unsupported scheme. Only HTTP and HTTPS URLs are supported on iOS.');
} }
List<Map<String, dynamic>> menuItemList = []; List<Map<String, dynamic>> menuItemList = [];