Skip to content

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 ?

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

} 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