Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support of HTTP errors #115

Merged
merged 7 commits into from
Aug 1, 2018

Conversation

romkor
Copy link
Contributor

@romkor romkor commented Jul 2, 2018

No description provided.

Copy link
Collaborator

@lejard-h lejard-h left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for PR, I added some comments

@@ -3,7 +3,7 @@
android:versionCode="1"
android:versionName="0.0.1">

<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="21" />
<uses-sdk android:minSdkVersion="23" android:targetSdkVersion="23" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think min version 23 is a great idea, since flutter support >=16

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, reverted

@@ -60,6 +60,8 @@ class FlutterWebviewPlugin {
/// more detail than other events
Stream<WebViewStateChanged> get onStateChanged => _onStateChanged.stream;

Stream<WebViewError> get onError => _onError.stream;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you rename it to onHttpError and WebViewError to WebViewHttpError to be more explicit ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@lejard-h
Copy link
Collaborator

lejard-h commented Aug 1, 2018

Thanks 👍

@lejard-h lejard-h merged commit 1847982 into fluttercommunity:master Aug 1, 2018
charafau pushed a commit that referenced this pull request Apr 7, 2020
@romkor romkor deleted the add_http_error_stream branch October 8, 2020 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants