[webview_flutter_platform_interface] Adds url to WebResourceError (#4439)

Platform interface portion of https://github.com/flutter/packages/pull/3884
This commit is contained in:
Maurice Parrish
2023-07-13 11:35:45 -04:00
committed by GitHub
parent aa1eace001
commit a4907b5b4c
3 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,7 @@
## 2.4.0
* Adds support to retrieve the url from a web resource loading error. See `WebResourceError.url`.
## 2.3.1
* Removes obsolete null checks on non-nullable values.

View File

@ -107,6 +107,7 @@ class WebResourceError {
required this.description,
this.errorType,
this.isForMainFrame,
this.url,
});
/// Raw code of the error from the respective platform.
@ -120,4 +121,7 @@ class WebResourceError {
/// Whether the error originated from the main frame.
final bool? isForMainFrame;
/// The URL for which the failing resource request was made.
final String? url;
}

View File

@ -4,7 +4,7 @@ repository: https://github.com/flutter/packages/tree/main/packages/webview_flutt
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+webview_flutter%22
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
version: 2.3.1
version: 2.4.0
environment:
sdk: ">=2.18.0 <4.0.0"