Closed GroovinChip closed 3 years ago
@lesliearkorful What's the rationale for having this SizedBox
at the top of the Sidebar
?
It's the top padding (or safe area) for sidebars when the native title bar is hidden or transparent. That top padding is equal to the height of the title bar in macos
You're seeing it like this because your app is showing the native macos title bar.
I guess we'll need a property to add or remove the top padding for the side bar.
I attached a screenshot of the Apple music app
It happens in projects where I hide the native titlebar as well:
Description
Currently,
MacosScaffold
builds aSizedBox(height: titleBarHeight - 1),
and adds it to the top of the sidebar. It results in undesired behavior. See the following screenshot:Steps To Reproduce
macos_ui
topubspec.yaml
main.dart
with the following:Expected behavior
The expected behavior is that
Text('Test')
should be flush with the window titlebar.Screenshots
See above
Logs
No logs to report