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