Closed aloisdeniel closed 3 years ago
Adding a content rect to PlatformWindow
seems reasonable. (Although I believe you could figure this out for the standard case of a windows containing nothing but a full-content-area Flutter view with the current API by getting the current window's information and comparing that to the size from MediaQuery
.)
Thanks for the answer.
You're right, something like this should do the trick :
final windowBarHeight = info.frame.height -
(ui.window.physicalSize.height / ui.window.devicePixelRatio);
Per the updated scope of this plugin, this isn't something that will be added. I would encourage you to review the multi-window design doc linked from that README and leave feedback if the proposed APIs wouldn't address your use case.
I would like to know how big is the title bar since it is included in window size. Since each version of an operating system has a different behaviour it is difficult to deal with it.
For the context, I want to have a window of a certain ratio, based on a device frame :