window_manager library
Windows on nativeapi: the Window and WindowManager API, the window
events, the drag and resize areas, and this package's own title bar
widgets.
Code written for window_manager 0.5.x imports
package:window_manager/legacy.dart instead.
nativeapi's Point, Size, Rectangle and Color are not exported, as
Flutter has its own; convert with toOffset(), toSize(), toRect(),
toColor() and toNative().
Classes
- DragToMoveArea
- A custom title-bar region that drags the window and performs the native title-bar double-click action, including the macOS user preference. A secondary click opens the native system window menu where supported (Windows, or a supporting Linux window manager): on release on Windows, as a native title bar does (the menu's modal loop would otherwise swallow the release, and Flutter would ignore the next secondary click), and on press elsewhere (a Wayland compositor accepts the request only with a press).
- DragToResizeArea
- Adds native resize handles over the edges and corners of child.
- EventDecision
- EventRequest
- MaximizeButtonArea
- Marks child, the app's own maximize button in a custom title bar, as the window's maximize button for the system.
- VirtualWindowFrame
- Draws the border and shadow of a frameless window, and puts native resize handles along its edges.
- Window
- WindowBlurredEvent
- WindowCaption
- A widget to simulate the title bar of windows 11.
- WindowCaptionButton
- WindowCaptionButtonIcon
- WindowClosedEvent
- WindowCloseRequestedEvent
- WindowCreatedEvent
- WindowDockedEvent
- WindowEnteredFullScreenEvent
- WindowEvent
-
One
WindowEvent, in its concrete form. - WindowExitedFullScreenEvent
- WindowFocusedEvent
- WindowManager
- WindowMaximizedEvent
- WindowMinimizedEvent
- WindowMovedEvent
- WindowOcclusionChangedEvent
- WindowPropertyChangedEvent
- WindowResizedEvent
- WindowRestoredEvent
- WindowUndockedEvent
Enums
Extensions
- ColorToNative on Color
-
Converts a Flutter ui.Color to a nativeapi
na.Color(8-bit channels). - NativeColorToColor on Color
-
Converts a nativeapi
na.Color(8-bit channels) to a Flutter ui.Color. - NativeSizeToSize on Size
-
Converts a nativeapi
na.Sizeto a Flutter ui.Size. - OffsetToNative on Offset
-
Converts a Flutter ui.Offset to a nativeapi
na.Point. - PointToOffset on Point
-
Converts a nativeapi
na.Pointto a Flutter ui.Offset. - RectangleToRect on Rectangle
-
Converts a nativeapi
na.Rectangleto a Flutter ui.Rect. - RectToNative on Rect
-
Converts a Flutter ui.Rect to a nativeapi
na.Rectangle. - SizeToNative on Size
-
Converts a Flutter ui.Size to a nativeapi
na.Size.
Constants
- kWindowCaptionHeight → const double
Functions
Typedefs
- ListenerId = int
- Identifies one registered event listener.
- WindowId = int
- WindowNumber = int