Open
Description
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:
if(defaultTargetPlatform == TargetPlatform.macOS) {
return MediaQuery(
child: app,
data: MediaQuery.of(context).copyWith(
padding: const EdgeInsets.only(top: 40),
),
);
}
Works as intended:
Metadata
Metadata
Assignees
Labels
No labels