mirror of
https://github.com/flutter/packages.git
synced 2025-06-30 06:37:17 +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
|
## 2.3.1
|
||||||
|
|
||||||
* Removes obsolete null checks on non-nullable values.
|
* Removes obsolete null checks on non-nullable values.
|
||||||
|
@ -107,6 +107,7 @@ class WebResourceError {
|
|||||||
required this.description,
|
required this.description,
|
||||||
this.errorType,
|
this.errorType,
|
||||||
this.isForMainFrame,
|
this.isForMainFrame,
|
||||||
|
this.url,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// Raw code of the error from the respective platform.
|
/// Raw code of the error from the respective platform.
|
||||||
@ -120,4 +121,7 @@ class WebResourceError {
|
|||||||
|
|
||||||
/// Whether the error originated from the main frame.
|
/// Whether the error originated from the main frame.
|
||||||
final bool? isForMainFrame;
|
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
|
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
|
# 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
|
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
|
||||||
version: 2.3.1
|
version: 2.4.0
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.18.0 <4.0.0"
|
sdk: ">=2.18.0 <4.0.0"
|
||||||
|
Reference in New Issue
Block a user