code formatting
This commit is contained in:
parent
3101b44c37
commit
b82baaa061
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
},
|
},
|
||||||
|
|
|
@ -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();
|
||||||
},
|
},
|
||||||
|
|
|
@ -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);
|
||||||
},
|
},
|
||||||
|
|
|
@ -45,8 +45,7 @@ void shouldInterceptRequest() {
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
"""),
|
"""),
|
||||||
initialSettings:
|
initialSettings: InAppWebViewSettings(),
|
||||||
InAppWebViewSettings(),
|
|
||||||
onWebViewCreated: (controller) {
|
onWebViewCreated: (controller) {
|
||||||
controllerCompleter.complete(controller);
|
controllerCompleter.complete(controller);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue