macos_window_utils.dart

macos_window_utils is a Flutter package that provides a set of methods for modifying the NSWindow of a Flutter application on macOS.

MIT License

Stars
51
Committers
3
macos_window_utils.dart - v1.5.0 Latest Release

Published by Adrian-Samoticha 8 months ago

  • Add the following window methods:
    • preventWindowClosure
    • allowWindowClosure
    • isWindowClosureAllowed
    • closeWindow
    • performClose
macos_window_utils.dart - v1.4.0

Published by Adrian-Samoticha about 1 year ago

  • Add methods to retrieve or manipulate the window’s size and position.
macos_window_utils.dart - v1.3.0

Published by Adrian-Samoticha about 1 year ago

  • Add overrideStandardWindowButtonPosition and getStandardWindowButtonPosition to WindowManipulator to allow getting and setting the position of standard window buttons.
macos_window_utils.dart - v1.2.0

Published by Adrian-Samoticha about 1 year ago

  • Fix typo in README.
  • Add isMainWindow getter to WindowManipulator.
macos_window_utils.dart - v1.1.2

Published by Adrian-Samoticha over 1 year ago

  • Make macos_window_utils work without modifications to MainFlutterWindow.swift.
macos_window_utils.dart - v1.1.1

Published by Adrian-Samoticha over 1 year ago

  • Hotfix: Fix accidental breaking change in directory structure in 1.1.0.
macos_window_utils.dart - v1.1.0 (retracted)

Published by Adrian-Samoticha over 1 year ago

  • Add an abstract NSWindowDelegate that 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
      • windowWillBeginSheet
      • windowDidEndSheet
    • Sizing Windows
      • windowWillResize
      • windowDidResize
      • windowWillStartLiveResize
      • windowDidEndLiveResize
    • Minimizing Windows
      • windowWillMiniaturize
      • windowDidMiniaturize
      • windowDidDeminiaturize
    • Zooming Window
      • windowWillUseStandardFrame
      • windowShouldZoom
    • Managing Full-Screen Presentation
      • windowWillEnterFullScreen
      • windowDidEnterFullScreen
      • windowWillExitFullScreen
      • windowDidExitFullScreen
    • Moving Windows
      • windowWillMove
      • windowDidMove
      • windowDidChangeScreen
      • windowDidChangeScreenProfile
      • windowDidChangeBackingProperties
    • Closing Windows
      • windowShouldClose
      • windowWillClose
    • Managing Key Status
      • windowDidBecomeKey
      • windowDidResignKey
    • Managing Main Status
      • windowDidBecomeMain
      • windowDidResignMain
    • Exposing Windows
      • windowDidExpose
    • Managing Occlusion State
      • windowDidChangeOcclusionState
    • Managing Presentation in Version Browsers
      • windowWillEnterVersionBrowser
      • windowDidEnterVersionBrowser
      • windowWillExitVersionBrowser
      • windowDidExitVersionBrowser
  • Add an NSAppPresentationOptions class that allows the window's fullscreen presentation options to be modified.
macos_window_utils.dart - v1.0.1

Published by Adrian-Samoticha almost 2 years ago

  • Add setLevel method.
  • Add the following order* methods:
    • orderOut
    • orderBack
    • orderFront
    • orderFrontRegardless
  • Add methods to modify the window's styleMask property.
  • Improve documentation.
macos_window_utils.dart - v1.0.0

Published by Adrian-Samoticha almost 2 years ago

  • Initial version.