From f885a0537fcaf858c2ef38f1de0ce677354dfa8c Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Mon, 25 Apr 2022 18:00:10 +0200 Subject: [PATCH] fixed code example --- example/lib/in_app_webiew_example.screen.dart | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/example/lib/in_app_webiew_example.screen.dart b/example/lib/in_app_webiew_example.screen.dart index a92baa96..b656d6fe 100755 --- a/example/lib/in_app_webiew_example.screen.dart +++ b/example/lib/in_app_webiew_example.screen.dart @@ -169,20 +169,6 @@ class _InAppWebViewExampleScreenState extends State { this.url = url.toString(); urlController.text = this.url; }); - if (url?.host == 'github.com') { - await controller.loadUrl( - urlRequest: URLRequest( - url: Uri.parse('https://flutter-header-echo.herokuapp.com/'), - headers: { - 'test_header': 'flutter_test_header' - })); - final String? currentUrl = (await controller.getUrl())?.toString(); - print(currentUrl); - await Future.delayed(Duration(seconds: 2)); - final String? content = await controller.evaluateJavascript( - source: 'document.documentElement.innerText'); - print(content); - } }, onLoadError: (controller, url, code, message) { pullToRefreshController.endRefreshing();