Damy Wise

Results 71 comments of Damy Wise

Also to note: On Windows, windowManager.setResizable(...) is only disabling the manual resize borders so hovering and clicking the borders won't do anything and the app is still resizable using code.

> What's the code for that? Do this [Hide at launch](https://github.com/leanflutter/window_manager#hidden-at-launch) and then add this code (like in [usage example](https://github.com/leanflutter/window_manager#usage)) ```dart windowManager.waitUntilReadyToShow().then((_) async { // ... maybe some code await...

If [WM_NCHITTEST](https://docs.microsoft.com/en-us/windows/apps/desktop/modernize/apply-snap-layout-menu) is required, then [generating WM_NCHITTEST](https://stackoverflow.com/questions/49019597/generate-a-wm-nchittest-message) might be the solution. This could also be the solution for #77 If that fails, probably send WIN+Z message to the window

Original issue: https://github.com/GroovinChip/macos_ui/issues/266

I can reproduce this issue with these steps: 1. Add latest window_manager to pubpspec.yaml 2. Replace `macos/Runner/MainFlutterWindow.swift` with https://github.com/GroovinChip/macos_ui#modern-window-look 3. Initialize windowManager using `await windowManager.ensureInitialized();` Minimal `main.dart` code: ```dart import...

The problem is, this line in the modified `macos/Runner/MainFlutterWindow.swift ` ```swift self.toolbar?.isVisible = false ``` It's supposed to hide to toolbar when going to fullscreen, but it isn't working as...

Found a fix: add these line to [`WindowManager.swift`](https://github.com/leanflutter/window_manager/blob/main/macos/Classes/WindowManager.swift#L546) ```swift public func windowWillEnterFullScreen(_ notification: Notification) { mainWindow.toolbar?.isVisible = false } ``` and this line ```swift mainWindow.toolbar?.isVisible = true ``` after ```swift...

Note that this is only a temporary fix for this specific use case and I'm not experienced enough in swift to make a pull request for this issue

@Maksimka101 here you go [window_manager_issue171](https://github.com/foamify/window_manager_issue171)