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

FullScreen Webview without Appbar draws behind the status bar. #118

Closed
LucianoSP opened this issue Jul 3, 2018 · 5 comments
Closed

FullScreen Webview without Appbar draws behind the status bar. #118

LucianoSP opened this issue Jul 3, 2018 · 5 comments

Comments

@LucianoSP
Copy link

I´m using the following code to launch the webview:
`return new MaterialApp(
debugShowCheckedModeBanner: false,
home: WebviewScaffold(
withZoom: true,
withJavascript: true,
withLocalStorage: true,
primary: true,
clearCache: false,
url: url,

    ));

}`

The problem is the website draws under the status bar. I can´t find a way to hide the status bar (not ideal) or insert some padding to the webview. How can this be accomplished, please?

@LucianoSP
Copy link
Author

celular

@LucianoSP
Copy link
Author

I found that SystemChrome.setEnabledSystemUIOverlays([]) hides the status bar, that should do it.

@sameerbakre
Copy link

Is there any workaround for keeping status bar?

@5hanth
Copy link

5hanth commented Apr 10, 2019

@sameerbakre you need to use SafeArea() plugin.

@August0Cesar
Copy link

@sameerbakre you need to use SafeArea() plugin.

This works great for me.
https://www.youtube.com/watch?v=lkF0TQJO0bA

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

No branches or pull requests

4 participants