change rawValue
This commit is contained in:
@@ -40,13 +40,6 @@ Future launchURL(
|
||||
}
|
||||
|
||||
String _externalUrlForScheme(String url, String scheme, String? authority) {
|
||||
// if (authority != null && authority.isNotEmpty) {
|
||||
// final urlStr = Uri.decodeComponent(authority);
|
||||
// final uri = Uri.tryParse(urlStr);
|
||||
// if (uri != null && uri.scheme.isNotEmpty) {
|
||||
// return urlStr;
|
||||
// }
|
||||
// }
|
||||
final prefix = '${scheme.toLowerCase()}://';
|
||||
if (url.length < prefix.length ||
|
||||
url.substring(0, prefix.length).toLowerCase() != prefix) {
|
||||
@@ -652,7 +645,7 @@ class _LoadingScreenState extends State<LoadingScreen>
|
||||
shouldOverrideUrlLoading:
|
||||
(controller, navigationAction) async {
|
||||
final requestUrl = navigationAction.request.url
|
||||
?.toString();
|
||||
?.rawValue;
|
||||
|
||||
if (requestUrl != null &&
|
||||
requestUrl.isNotEmpty) {
|
||||
|
||||
Reference in New Issue
Block a user