https://github.com/chainapsis/desktop_window_bootstrap
https://github.com/chainapsis/desktop_window_bootstrap
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/chainapsis/desktop_window_bootstrap
- Owner: chainapsis
- License: other
- Created: 2026-04-17T09:20:36.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2026-05-28T08:11:51.000Z (22 days ago)
- Last Synced: 2026-05-28T10:05:15.825Z (22 days ago)
- Language: C++
- Size: 242 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# desktop_window_bootstrap
Minimal desktop window bootstrap helpers for Flutter desktop apps.
## Windows Client Area
`applyWindowsClientAreaLayout` adjusts the native Windows outer HWND so the
Flutter client area matches a design window size after a caller-supplied top
inset is removed.
The inset is intentionally not owned by this package. Apps that design against a
macOS full-size-content window should pass their own macOS titlebar/safe-area
height, for example `32`.
```dart
await DesktopWindowBootstrap.applyWindowsClientAreaLayout(
windowSize: const Size(1080, 720),
minimumWindowSize: const Size(1080, 720),
contentTopInset: 32,
center: true,
);
```
With those values, Windows targets a Flutter client area of `1080 x 688`.
`getWindowsClientAreaSize()` returns the current Windows client area in logical
pixels for resize reconciliation.