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 'show', 'hide', and 'reloadUrl' functions #86

Merged
merged 5 commits into from
Jun 26, 2018

Conversation

gerryhigh
Copy link

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.

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.

does it fix #65 too ?

@@ -162,4 +162,14 @@ boolean canGoBack() {
boolean canGoForward() {
return webView.canGoForward();
}
void hide(MethodCall call, MethodChannel.Result result) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

format java code

@@ -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]) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

format swift code

Copy link
Author

@gerryhigh gerryhigh left a 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

@gerryhigh
Copy link
Author

Are you waiting for anything from me on this?

@lejard-h lejard-h merged commit c5a35fd into fluttercommunity:master Jun 26, 2018
@zoechi zoechi mentioned this pull request Jul 2, 2018
charafau pushed a commit that referenced this pull request Apr 7, 2020
Add 'show', 'hide', and 'reloadUrl' functions
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.

3 participants