From 476dc86cfb0af98b2e0ff4760faa88857388ea7e Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Fri, 14 Oct 2022 00:59:31 +0200 Subject: [PATCH] fixed example --- example/lib/in_app_webiew_example.screen.dart | 22 +------------------ 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/example/lib/in_app_webiew_example.screen.dart b/example/lib/in_app_webiew_example.screen.dart index 12929e1f..a42b9b45 100755 --- a/example/lib/in_app_webiew_example.screen.dart +++ b/example/lib/in_app_webiew_example.screen.dart @@ -118,7 +118,7 @@ class _InAppWebViewExampleScreenState extends State { key: webViewKey, // contextMenu: contextMenu, initialUrlRequest: - URLRequest(url: Uri.parse("https://flutter.dev/")), + URLRequest(url: Uri.parse("https://github.com/flutter")), // initialFile: "assets/index.html", initialUserScripts: UnmodifiableListView([]), initialOptions: options, @@ -169,26 +169,6 @@ class _InAppWebViewExampleScreenState extends State { this.url = url.toString(); urlController.text = this.url; }); - - CookieManager cookieManager = CookieManager.instance(); - - await cookieManager.setCookie( - url: url!, name: "myCookie", value: "myValue"); - List cookies = await cookieManager.getCookies(url: url); - print(cookies); - - Cookie? cookie = - await cookieManager.getCookie(url: url, name: "myCookie"); - print(cookie); - - await cookieManager.deleteCookie(url: url, name: "myCookie", domain: ".flutter.dev"); - cookie = await cookieManager.getCookie(url: url, name: "myCookie"); - print(cookie); - - await cookieManager.deleteCookies(url: url, domain: ".flutter.dev"); - await Future.delayed(Duration(seconds: 1)); - cookies = await cookieManager.getCookies(url: url); - print(cookies); }, onLoadError: (controller, url, code, message) { pullToRefreshController.endRefreshing();