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
- 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

View File

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

View File

@ -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();
},

View File

@ -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);
},

View File

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