-
Notifications
You must be signed in to change notification settings - Fork 9
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
Doesn't set MediaQueryData.viewPadding #50
Comments
macos_window_utils provides a TitlebarSafeArea class specifically for this purpose. |
@Adrian-Samoticha That does not yield the intended result. return TitlebarSafeArea(
child: app
); In Flutter, The ideal solution would be something like I'd be happy to contribute any of the above improvements if they sound good |
If the |
That is what I'm currently doing, however I was suggesting that perhaps this is functionality that the library should provide out-of-the-box, since without it most Cupertino/Material apps will look & behave improperly |
I don’t really think that’s necessary. Since macos_window_utils provides only a single property that’s in any way related to |
When using
macos_window_utils
in combination with other UI libraries like Material and Cupertino, the content tends to invade the button area, like this:The simple solution would be to set the
viewPadding
property on MediaQuery, which is how Flutter compensates for notches on phones. Here's my temporary workaround:Works as intended:
The text was updated successfully, but these errors were encountered: