mirror of
https://github.com/flutter/packages.git
synced 2025-06-29 22:33:11 +08:00
[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:
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user