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

Expose webview estimated loading progress value in Flutter #177

Closed
florisvdg opened this issue Aug 27, 2018 · 2 comments
Closed

Expose webview estimated loading progress value in Flutter #177

florisvdg opened this issue Aug 27, 2018 · 2 comments

Comments

@florisvdg
Copy link

It would be great to be able to subscribe to the webview's estimated progress value in Flutter, backed by the estimatedProgress value in iOS and the onProgressChanged callback on Android. With that in data available we can show a sliding progress bar as a widget in Flutter.

On iOS that would be:

webView.addObserver(self, forKeyPath: #keyPath(WKWebView.estimatedProgress), options: .new, context: nil)

On Android:

webView.setWebChromeClient(new WebChromeClient() {
   public void onProgressChanged(WebView view, int progress) {

   }
}
@slightfoot
Copy link
Member

relates to #232

@florisvdg
Copy link
Author

Fixed in #255.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants