File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
packages/webview_flutter/webview_flutter_platform_interface Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change
1
+ ## 2.4.0
2
+
3
+ * Adds support to retrieve the url from a web resource loading error. See ` WebResourceError.url ` .
4
+
1
5
## 2.3.1
2
6
3
7
* Removes obsolete null checks on non-nullable values.
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ class WebResourceError {
107
107
required this .description,
108
108
this .errorType,
109
109
this .isForMainFrame,
110
+ this .url,
110
111
});
111
112
112
113
/// Raw code of the error from the respective platform.
@@ -120,4 +121,7 @@ class WebResourceError {
120
121
121
122
/// Whether the error originated from the main frame.
122
123
final bool ? isForMainFrame;
124
+
125
+ /// The URL for which the failing resource request was made.
126
+ final String ? url;
123
127
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ repository: https://github.com/flutter/packages/tree/main/packages/webview_flutt
4
4
issue_tracker : https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+webview_flutter%22
5
5
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
6
6
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
7
- version : 2.3.1
7
+ version : 2.4.0
8
8
9
9
environment :
10
10
sdk : " >=2.18.0 <4.0.0"
You can’t perform that action at this time.
0 commit comments