-
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
Statusbar overlapping in webview #296
Comments
Here is my code
|
There is no direct way to handle it. You have two options here. Either add appBar and everything would be taken care by itself. Or other option is little bit dirty coding. Once your page is loaded call following flutterWebviewPlugin.resize(_buildRect()) Rect _buildRect() { |
Sorry, for newbee question. How/where to initialize this medioQuery member? |
Found another solution, instead of AppBar I've used this:
|
It does not work for me. |
@sameerbakre already answered this question either use AppBar or use rect constructor to resize webview, coping for everyone: futterWebviewPlugin.resize(_buildRect())
Rect _buildRect() {
final topPadding = mediaQuery.padding.top;
final top = topPadding;
var height = mediaQuery.size.height - top;
height -= 56.0 + mediaQuery.padding.bottom;
if (height < 0.0) {
height = 0.0;
}
return new Rect.fromLTWH(0.0, top, mediaQuery.size.width, height);
} |
I have integrated web view in my flutter App but status bar overlapping the web view .
The text was updated successfully, but these errors were encountered: