macos_window_utils
macos_window_utils is a Flutter package that provides a set of methods for modifying the NSWindow of a Flutter application on macOS.
1.9.1
65K downloads/mo
#1321 most downloaded on pub.dev
Adrian-Samoticha/macos_window_utils.dart
What this package is like to depend on
Last release 7 months ago
05 Jan 2026
Release timing varies
gaps range from 1 weeks to 9 months
Nearly every release is documented
notes for 23 of 23 stable releases
1 version withdrawn
withdrawn after publishing
4 years old
24 releases · first in 2022
1 release in the last 12 months
see the full history below
Release timeline
24 releases · Dec 2022 to Jan 2026
2023
2024
2025
2026
Releases
latest 24-
1.9.105 Jan 2026Release notes
Open source →- Add identifier to
DefaultToolbarto fix assertion failure on macOS 10.15 and 12.x (thanks to @cbenhagen).
- Add identifier to
-
1.9.021 Aug 2025Release notes
Open source →- Add
setWindowMinSizeandsetWindowMaxSizemethods toWindowManipulatorto allow setting the minimum and maximum window size (thanks to @defuncart).
- Add
-
1.8.521 Aug 2025Release notes
Open source →- Prevent
_titlebarHeightfrom being set to a negative value when drag resizing the window (thanks to @CodeEagle).
- Prevent
-
1.8.417 Jun 2025Release notes
Open source →- Migrate away from deprecated interfaces.
- Set Flutter version constraint to
">=3.27.0".
-
1.8.317 Jun 2025Release notes
Open source →- Undo the migration away from deprecated interfaces, as it caused incompatibilities with older Flutter versions.
-
1.8.206 Jun 2025Release notes
Open source →- Add support for Swift Package Manager. (Thanks to @EchoEllet!)
- Migrate away from deprecated interfaces.
- Add missing documentation to
WindowManipulator.updateToolbarPassthroughViewandWindowManipulator.removeToolbarPassthroughView.
-
1.8.122 May 2025 -
1.8.021 May 2025 -
1.7.130 Mar 2025Release notes
Open source →- Fix nil being found when unwrapping an Optional value when
resetis called beforestartinMainFlutterWindowManipulator.swift.
- Fix nil being found when unwrapping an Optional value when
-
1.7.022 Mar 2025Release notes
Open source →1.7.0
- Add
MacosToolbarPassthroughto allow for the creation of so-called “passthrough views” on the toolbar that relay mouse events to the Flutter application (thanks to @Andre-lbc and @adiletcool).
Release notes
Open source →- Add
MacosToolbarPassthroughto allow for the creation of so-called “passthrough views” on the toolbar that relay mouse events to the Flutter application (thanks to @Andre-lbc and @adiletcool).
- Add
-
1.6.113 Nov 2024Release notes
Open source →- Add instructions on how to setup macos_window_utils for macOS Monterey and earlier versions.
-
1.6.031 Oct 2024Release notes
Open source →- Add support for a blocking toolbar, that is, a special kind of toolbar that blocks double clicks from the user and allows for UI elements to be placed inside a blocked area (thanks to @cbenhagen and @Andre-lbc).
-
1.5.018 Feb 2024Release notes
Open source →- Add the following window methods:
preventWindowClosureallowWindowClosureisWindowClosureAllowedcloseWindowperformClose
Release notes
Open source →- Add the following window methods:
preventWindowClosureallowWindowClosureisWindowClosureAllowedcloseWindowperformClose
- Add the following window methods:
-
1.4.027 Sep 2023 -
1.3.005 Sep 2023Release notes
Open source →- Add
overrideStandardWindowButtonPositionandgetStandardWindowButtonPositiontoWindowManipulatorto allow getting and setting the position of standard window buttons.
Release notes
Open source →- Add
overrideStandardWindowButtonPositionandgetStandardWindowButtonPositiontoWindowManipulatorto allow getting and setting the position of standard window buttons.
- Add
-
1.2.009 Aug 2023 -
1.1.327 May 2023Release notes
Open source →- Fix multiple
FlutterViewControllers being created, which prevented the apps from exiting properly on Flutter 3.10.
- Fix multiple
-
1.1.222 Mar 2023Release notes
Open source →- Make macos_window_utils work without modifications to
MainFlutterWindow.swift.
Release notes
Open source →- Make macos_window_utils work without modifications to
MainFlutterWindow.swift.
- Make macos_window_utils work without modifications to
-
1.1.101 Mar 2023 -
1.1.028 Feb 2023 withdrawnRelease notes
Open source →- Add an abstract
NSWindowDelegatethat can be used to listen to events provided by NSWindowDelegate such as window resizing, moving, exposing, and minimizing. The following methods are currently supported:- Managing Sheets
windowWillBeginSheetwindowDidEndSheet
- Sizing Windows
windowWillResizewindowDidResizewindowWillStartLiveResizewindowDidEndLiveResize
- Minimizing Windows
windowWillMiniaturizewindowDidMiniaturizewindowDidDeminiaturize
- Zooming Window
windowWillUseStandardFramewindowShouldZoom
- Managing Full-Screen Presentation
windowWillEnterFullScreenwindowDidEnterFullScreenwindowWillExitFullScreenwindowDidExitFullScreen
- Moving Windows
windowWillMovewindowDidMovewindowDidChangeScreenwindowDidChangeScreenProfilewindowDidChangeBackingProperties
- Closing Windows
windowShouldClosewindowWillClose
- Managing Key Status
windowDidBecomeKeywindowDidResignKey
- Managing Main Status
windowDidBecomeMainwindowDidResignMain
- Exposing Windows
windowDidExpose
- Managing Occlusion State
windowDidChangeOcclusionState
- Managing Presentation in Version Browsers
windowWillEnterVersionBrowserwindowDidEnterVersionBrowserwindowWillExitVersionBrowserwindowDidExitVersionBrowser
- Managing Sheets
- Add an
NSAppPresentationOptionsclass that allows the window's fullscreen presentation options to be modified.
Release notes
Open source →- Add an abstract
NSWindowDelegatethat can be used to listen to events provided by NSWindowDelegate such as window resizing, moving, exposing, and minimizing. The following methods are currently supported:- Managing Sheets
windowWillBeginSheetwindowDidEndSheet
- Sizing Windows
windowWillResizewindowDidResizewindowWillStartLiveResizewindowDidEndLiveResize
- Minimizing Windows
windowWillMiniaturizewindowDidMiniaturizewindowDidDeminiaturize
- Zooming Window
windowWillUseStandardFramewindowShouldZoom
- Managing Full-Screen Presentation
windowWillEnterFullScreenwindowDidEnterFullScreenwindowWillExitFullScreenwindowDidExitFullScreen
- Moving Windows
windowWillMovewindowDidMovewindowDidChangeScreenwindowDidChangeScreenProfilewindowDidChangeBackingProperties
- Closing Windows
windowShouldClosewindowWillClose
- Managing Key Status
windowDidBecomeKeywindowDidResignKey
- Managing Main Status
windowDidBecomeMainwindowDidResignMain
- Exposing Windows
windowDidExpose
- Managing Occlusion State
windowDidChangeOcclusionState
- Managing Presentation in Version Browsers
windowWillEnterVersionBrowserwindowDidEnterVersionBrowserwindowWillExitVersionBrowserwindowDidExitVersionBrowser
- Managing Sheets
- Add an
NSAppPresentationOptionsclass that allows the window's fullscreen presentation options to be modified.
- Add an abstract
-
1.0.227 Jan 2023 -
1.0.111 Jan 2023Release notes
Open source →- Add
setLevelmethod. - Add the following
order*methods:orderOutorderBackorderFrontorderFrontRegardless
- Add methods to modify the window's
styleMaskproperty. - Improve documentation.
Release notes
Open source →- Add
setLevelmethod. - Add the following
order*methods:orderOutorderBackorderFrontorderFrontRegardless
- Add methods to modify the window's
styleMaskproperty. - Improve documentation.
- Add
-
1.0.027 Dec 2022 -
1.0.0+106 Jan 2023Release notes
Open source →- Improve “Getting started” section in the project's readme.
- Improve documentation formatting.