-
Notifications
You must be signed in to change notification settings - Fork 936
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 'show', 'hide', and 'reloadUrl' functions #86
Conversation
There was a problem hiding this 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.
does it fix #65 too ?
@@ -162,4 +162,14 @@ boolean canGoBack() { | |||
boolean canGoForward() { | |||
return webView.canGoForward(); | |||
} | |||
void hide(MethodCall call, MethodChannel.Result result) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format java code
ios/Classes/FlutterWebviewPlugin.m
Outdated
@@ -46,6 +46,15 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result { | |||
} else if ([@"resize" isEqualToString:call.method]) { | |||
[self resize:call]; | |||
result(nil); | |||
} else if ([@"reloadUrl" isEqualToString:call.method]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format swift code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes the format issues; it also addresses issue #65
Are you waiting for anything from me on this? |
Add 'show', 'hide', and 'reloadUrl' functions
These methods allow you to use an embedded web view in cases where you will need to hide/show the web view (for example, in a tabview). The reloadUrl is when you wish to re-use the web view with a different URL without destroying it.
There are also a few changes to .gitignore (it seems not enough files are being excluded). I also updated some of the build files to use a newer version of gradle, etc.