Skip to content

Commit

Permalink
[webview_flutter_platform_interface] Adds url to WebResourceError (…
Browse files Browse the repository at this point in the history
…#4439)

Platform interface portion of flutter/packages#3884
  • Loading branch information
bparrishMines committed Jul 13, 2023
1 parent 0ed3729 commit 888d469
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions webview_flutter_platform_interface/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class WebResourceError {
required this.description,
this.errorType,
this.isForMainFrame,
this.url,
});

/// Raw code of the error from the respective platform.
Expand All @@ -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;
}
2 changes: 1 addition & 1 deletion webview_flutter_platform_interface/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 888d469

Please sign in to comment.