-
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
The webview content shows loading indicator and nothing else #162
Comments
Check this hack |
use this within the build method where the WebviewScaffold is mounted
you will get your problem solved :) |
Problem solved! Suggest add it to the readme in case new comer will surely come across this problem. Following is my snippet, in case anyone need it.
|
However, I've came across the https://pub.dartlang.org/packages/flutter_custom_tabs today. And I think it may be better and simpler for just webpage browsing. Take care of the workaround branch in case you are migrating to androidX (droibit/flutter_custom_tabs#9). |
obove isn't work for me, I did this works! Widget build(BuildContext context) {
return new WillPopScope(child: new WebviewScaffold(
...
), onWillPop: _willPopCallback);
}
Future<bool> _willPopCallback() async {
flutterWebviewPlugin.close();
} |
I spent like an hour trying to figure out why it only shows circular progress indicator instead of the web page. the onDestroy listener didn't solve it. I finally solved it by making the "hidden" parameter in WebviewScaffold false instead of true. The below is the code:
|
The plugin |
Reproduce:
Open a webview and click a sublink, then go back will return to the original web page, then go back AGAIN, the webview will not be closed but just shows a loading indicator and blank page content.
And sometimes not clicking a sublink before going back will also causing this problem.
And if I fire the close() inside onWillPop will not be working also.
The text was updated successfully, but these errors were encountered: