code formatting

This commit is contained in:
Lorenzo Pichilli 2022-11-22 22:41:18 +01:00
parent 3101b44c37
commit b82baaa061
5 changed files with 6 additions and 11 deletions

View File

@ -1,6 +1,6 @@
## 6.0.0-beta.15 ## 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 ### BREAKING CHANGES

View File

@ -45,8 +45,7 @@ void onDownloadStartRequest() {
</body> </body>
</html> </html>
"""), """),
initialSettings: initialSettings: InAppWebViewSettings(clearCache: true),
InAppWebViewSettings(clearCache: true),
onWebViewCreated: (controller) { onWebViewCreated: (controller) {
controllerCompleter.complete(controller); controllerCompleter.complete(controller);
}, },

View File

@ -32,8 +32,7 @@ void onLoadResource() {
key: GlobalKey(), key: GlobalKey(),
initialFile: initialFile:
"test_assets/in_app_webview_on_load_resource_test.html", "test_assets/in_app_webview_on_load_resource_test.html",
initialSettings: initialSettings: InAppWebViewSettings(clearCache: true),
InAppWebViewSettings(clearCache: true),
onLoadStop: (controller, url) { onLoadStop: (controller, url) {
pageLoaded.complete(); pageLoaded.complete();
}, },

View File

@ -29,8 +29,7 @@ void onNavigationResponse() {
child: InAppWebView( child: InAppWebView(
key: GlobalKey(), key: GlobalKey(),
initialUrlRequest: URLRequest(url: TEST_URL_1), initialUrlRequest: URLRequest(url: TEST_URL_1),
initialSettings: initialSettings: InAppWebViewSettings(),
InAppWebViewSettings(),
onWebViewCreated: (controller) { onWebViewCreated: (controller) {
controllerCompleter.complete(controller); controllerCompleter.complete(controller);
}, },
@ -64,8 +63,7 @@ void onNavigationResponse() {
child: InAppWebView( child: InAppWebView(
key: GlobalKey(), key: GlobalKey(),
initialUrlRequest: URLRequest(url: TEST_URL_1), initialUrlRequest: URLRequest(url: TEST_URL_1),
initialSettings: initialSettings: InAppWebViewSettings(),
InAppWebViewSettings(),
onWebViewCreated: (controller) { onWebViewCreated: (controller) {
controllerCompleter.complete(controller); controllerCompleter.complete(controller);
}, },

View File

@ -45,8 +45,7 @@ void shouldInterceptRequest() {
</body> </body>
</html> </html>
"""), """),
initialSettings: initialSettings: InAppWebViewSettings(),
InAppWebViewSettings(),
onWebViewCreated: (controller) { onWebViewCreated: (controller) {
controllerCompleter.complete(controller); controllerCompleter.complete(controller);
}, },