From b82baaa06158e33bcb9040703d70ea8796ba2889 Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Tue, 22 Nov 2022 22:41:18 +0100 Subject: [PATCH] code formatting --- CHANGELOG.md | 2 +- .../in_app_webview/on_download_start_request.dart | 3 +-- .../integration_test/in_app_webview/on_load_resource.dart | 3 +-- .../in_app_webview/on_navigation_response.dart | 6 ++---- .../in_app_webview/should_intercept_request.dart | 3 +-- 5 files changed, 6 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77bc63d8..d0f3348b 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ## 6.0.0-beta.15 -- Automatically infer `useShouldOverrideUrlLoading`, `useOnLoadResource`, `useOnDownloadStart`, `useShouldInterceptAjaxRequest`, `useShouldInterceptFetchRequest`, `useShouldInterceptRequest`, `useOnRenderProcessGone`, `useOnNavigationResponse` settings if their value is `null` and the corresponding event is implemented by the WebView (`InAppWebView` and `HeadlessInAppWebView`, not `InAppBrowser`) before it's native initialization. +- Automatically infer `useShouldOverrideUrlLoading`, `useOnLoadResource`, `useOnDownloadStart`, `useShouldInterceptAjaxRequest`, `useShouldInterceptFetchRequest`, `useShouldInterceptRequest`, `useOnRenderProcessGone`, `useOnNavigationResponse` settings if their value is `null` and the corresponding event is implemented by the WebView (`InAppWebView` and `HeadlessInAppWebView`, not `InAppBrowser`) before it's native initialization ### BREAKING CHANGES diff --git a/example/integration_test/in_app_webview/on_download_start_request.dart b/example/integration_test/in_app_webview/on_download_start_request.dart index 8801f03e..fcc25ef8 100644 --- a/example/integration_test/in_app_webview/on_download_start_request.dart +++ b/example/integration_test/in_app_webview/on_download_start_request.dart @@ -45,8 +45,7 @@ void onDownloadStartRequest() { """), - initialSettings: - InAppWebViewSettings(clearCache: true), + initialSettings: InAppWebViewSettings(clearCache: true), onWebViewCreated: (controller) { controllerCompleter.complete(controller); }, diff --git a/example/integration_test/in_app_webview/on_load_resource.dart b/example/integration_test/in_app_webview/on_load_resource.dart index 52dd9a4c..3b732a4d 100644 --- a/example/integration_test/in_app_webview/on_load_resource.dart +++ b/example/integration_test/in_app_webview/on_load_resource.dart @@ -32,8 +32,7 @@ void onLoadResource() { key: GlobalKey(), initialFile: "test_assets/in_app_webview_on_load_resource_test.html", - initialSettings: - InAppWebViewSettings(clearCache: true), + initialSettings: InAppWebViewSettings(clearCache: true), onLoadStop: (controller, url) { pageLoaded.complete(); }, diff --git a/example/integration_test/in_app_webview/on_navigation_response.dart b/example/integration_test/in_app_webview/on_navigation_response.dart index 61c6f660..e6d574fe 100644 --- a/example/integration_test/in_app_webview/on_navigation_response.dart +++ b/example/integration_test/in_app_webview/on_navigation_response.dart @@ -29,8 +29,7 @@ void onNavigationResponse() { child: InAppWebView( key: GlobalKey(), initialUrlRequest: URLRequest(url: TEST_URL_1), - initialSettings: - InAppWebViewSettings(), + initialSettings: InAppWebViewSettings(), onWebViewCreated: (controller) { controllerCompleter.complete(controller); }, @@ -64,8 +63,7 @@ void onNavigationResponse() { child: InAppWebView( key: GlobalKey(), initialUrlRequest: URLRequest(url: TEST_URL_1), - initialSettings: - InAppWebViewSettings(), + initialSettings: InAppWebViewSettings(), onWebViewCreated: (controller) { controllerCompleter.complete(controller); }, diff --git a/example/integration_test/in_app_webview/should_intercept_request.dart b/example/integration_test/in_app_webview/should_intercept_request.dart index e4c91259..d6b588ad 100644 --- a/example/integration_test/in_app_webview/should_intercept_request.dart +++ b/example/integration_test/in_app_webview/should_intercept_request.dart @@ -45,8 +45,7 @@ void shouldInterceptRequest() { """), - initialSettings: - InAppWebViewSettings(), + initialSettings: InAppWebViewSettings(), onWebViewCreated: (controller) { controllerCompleter.complete(controller); },