-
Notifications
You must be signed in to change notification settings - Fork 939
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
How do I remove the top padding for iOS? #644
Comments
@ChrisFetterly +1 Wondering the same thing. Plus the lower area. I want to extend the webview to cover the whole screen. |
Seeing the same problem. Did any of you solve it? |
Sadly not, I have tried contacting the developer directly via Twitter, but he just told me to use webview_flutter. But I can't, as that has no keyboard functionality at the moment. I have spent days trying to solve this. I really hope some dev picks this up! |
I see two approaches in the mean time:
|
Have you tested any of the approaches? Does it work? |
I have not tested yet. Will post back here when i do. |
I am eager to hear the results! |
Well - it turns out that my problem is the opposite of what you are reporting. I am seeing webview content behind the notch and bottom button that i wanted to hide - see the photo. Here is the code i use to place the webview in the tree: |
Does the code you posted produce what you show on the screenshot? Because that is what I am looking for. A true full sceen/immersive mode. |
That is exactly what it does. And thats what i thought might interest you. |
The emulator still has gaps... |
@ChrisFetterly @jockebq
|
This is a case when you want
|
Wow, that does seem to work! It does fill out the iPhone X screen fully. But I am having trouble once I start to navigate the page and clicking input fields. Then it starts to resize up and down. Is there any way to make this more permanent? As it seems to be "redone" each time it has finished loading? |
Try to add resize flag
|
I've found that the following HTML will be displayed incorrectly (looks like because of vh):
|
Hi, I'm quite new to flutter and programming in general. I'm wondering how to remove the top padding that is present for iOS. I looked in scaffold.dart but I'm quite confused on which parameters to adjust. Ideally, I'd like my WebViews scaffold to fill into the safe area. I'd like the WebView to extend right to the top of the phone. Would like there to be no white area as shown in the photo.

Thanks!
The text was updated successfully, but these errors were encountered: