Skip to content

Commit 859ba75

Browse files
committed
0.1.3
1 parent b621541 commit 859ba75

File tree

5 files changed

+88
-82
lines changed

5 files changed

+88
-82
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.1.3
2+
3+
- [windows] #31 Optimize setTitleBarStyle method.
4+
15
## 0.1.2
26

37
- [macos] Add setTitleBarStyle method.

README-ZH.md

Lines changed: 41 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
```yaml
5454
dependencies:
55-
window_manager: ^0.1.1
55+
window_manager: ^0.1.3
5656
```
5757
5858
@@ -256,45 +256,46 @@ class MainFlutterWindow: NSWindow {
256256

257257
### WindowManager
258258

259-
| Method | Description | Linux | macOS | Windows |
260-
| ---------------- | ---------------------------------------------------------------------------------------------------------- | ----- | ----- | ------- |
261-
| `focus` | Focuses on the window. | ✔️ | ✔️ ||
262-
| `blur` | Removes focus from the window. || ✔️ ||
263-
| `show` | Shows and gives focus to the window. | ✔️ | ✔️ | ✔️ |
264-
| `hide` | Hides the window. | ✔️ | ✔️ | ✔️ |
265-
| `isVisible` | Returns `bool` - Whether the window is visible to the user. | ✔️ | ✔️ | ✔️ |
266-
| `isMaximized` | Returns `bool` - Whether the window is maximized. | ✔️ | ✔️ | ✔️ |
267-
| `maximize` | Maximizes the window. | ✔️ | ✔️ | ✔️ |
268-
| `unmaximize` | Unmaximizes the window. | ✔️ | ✔️ | ✔️ |
269-
| `isMinimized` | Returns `bool` - Whether the window is minimized. | ✔️ | ✔️ | ✔️ |
270-
| `minimize` | Minimizes the window. | ✔️ | ✔️ | ✔️ |
271-
| `restore` | Restores the window from minimized state to its previous state. | ✔️ | ✔️ | ✔️ |
272-
| `isFullScreen` | Returns `bool` - Whether the window is in fullscreen mode. | ✔️ | ✔️ | ✔️ |
273-
| `setFullScreen` | Sets whether the window should be in fullscreen mode. | ✔️ | ✔️ | ✔️ |
274-
| `getBounds` | Returns `Rect` - The bounds of the window as Object. | ✔️ | ✔️ | ✔️ |
275-
| `setBounds` | Resizes and moves the window to the supplied bounds. | ✔️ | ✔️ | ✔️ |
276-
| `getPosition` | Returns `Offset` - Contains the window's current position. | ✔️ | ✔️ | ✔️ |
277-
| `setPosition` | Moves window to `x` and `y`. | ✔️ | ✔️ | ✔️ |
278-
| `getSize` | Returns `Size` - Contains the window's width and height. | ✔️ | ✔️ | ✔️ |
279-
| `setSize` | Resizes the window to `width` and `height`. | ✔️ | ✔️ | ✔️ |
280-
| `setMinimumSize` | Sets the minimum size of window to `width` and `height`. | ✔️ | ✔️ | ✔️ |
281-
| `setMaximumSize` | Sets the maximum size of window to `width` and `height`. | ✔️ | ✔️ | ✔️ |
282-
| `isResizable` | Returns `bool` - Whether the window can be manually resized by the user. | ✔️ | ✔️ | ✔️ |
283-
| `setResizable` | Sets whether the window can be manually resized by the user. | ✔️ | ✔️ | ✔️ |
284-
| `isMovable` | Returns `bool` - Whether the window can be moved by user. On Linux always returns `true`. || ✔️ ||
285-
| `setMovable` | Sets whether the window can be moved by user. On Linux does nothing. || ✔️ ||
286-
| `isMinimizable` | Returns `bool` - Whether the window can be manually minimized by the user. On Linux always returns `true`. || ✔️ | ✔️ |
287-
| `setMinimizable` | Sets whether the window can be manually minimized by user. On Linux does nothing. || ✔️ | ✔️ |
288-
| `isClosable` | Returns `bool` - Whether the window can be manually closed by user. On Linux always returns `true`. | ✔️ | ✔️ | ✔️ |
289-
| `setClosable` | Sets whether the window can be manually closed by user. On Linux does nothing. | ✔️ | ✔️ | ✔️ |
290-
| `isAlwaysOnTop` | Returns `bool` - Whether the window is always on top of other windows. | ✔️ | ✔️ | ✔️ |
291-
| `setAlwaysOnTop` | Sets whether the window should show always on top of other windows. | ✔️ | ✔️ | ✔️ |
292-
| `getTitle` | Returns `String` - The title of the native window. | ✔️ | ✔️ | ✔️ |
293-
| `setTitle` | Changes the title of native window to title. | ✔️ | ✔️ | ✔️ |
294-
| `setSkipTaskbar` | Makes the window not show in the taskbar / dock. | ✔️ | ✔️ | ✔️ |
295-
| `hasShadow` | Returns `bool` - Whether the window has a shadow. || ✔️ ||
296-
| `setHasShadow` | Sets whether the window should have a shadow. || ✔️ ||
297-
| `startDragging` | - | ✔️ | ✔️ | ✔️ |
259+
| Method | Description | Linux | macOS | Windows |
260+
| ------------------ | ---------------------------------------------------------------------------------------------------------- | ----- | ----- | ------- |
261+
| `focus` | Focuses on the window. | ✔️ | ✔️ ||
262+
| `blur` | Removes focus from the window. || ✔️ ||
263+
| `show` | Shows and gives focus to the window. | ✔️ | ✔️ | ✔️ |
264+
| `hide` | Hides the window. | ✔️ | ✔️ | ✔️ |
265+
| `isVisible` | Returns `bool` - Whether the window is visible to the user. | ✔️ | ✔️ | ✔️ |
266+
| `isMaximized` | Returns `bool` - Whether the window is maximized. | ✔️ | ✔️ | ✔️ |
267+
| `maximize` | Maximizes the window. | ✔️ | ✔️ | ✔️ |
268+
| `unmaximize` | Unmaximizes the window. | ✔️ | ✔️ | ✔️ |
269+
| `isMinimized` | Returns `bool` - Whether the window is minimized. | ✔️ | ✔️ | ✔️ |
270+
| `minimize` | Minimizes the window. | ✔️ | ✔️ | ✔️ |
271+
| `restore` | Restores the window from minimized state to its previous state. | ✔️ | ✔️ | ✔️ |
272+
| `isFullScreen` | Returns `bool` - Whether the window is in fullscreen mode. | ✔️ | ✔️ | ✔️ |
273+
| `setFullScreen` | Sets whether the window should be in fullscreen mode. | ✔️ | ✔️ | ✔️ |
274+
| `getBounds` | Returns `Rect` - The bounds of the window as Object. | ✔️ | ✔️ | ✔️ |
275+
| `setBounds` | Resizes and moves the window to the supplied bounds. | ✔️ | ✔️ | ✔️ |
276+
| `getPosition` | Returns `Offset` - Contains the window's current position. | ✔️ | ✔️ | ✔️ |
277+
| `setPosition` | Moves window to `x` and `y`. | ✔️ | ✔️ | ✔️ |
278+
| `getSize` | Returns `Size` - Contains the window's width and height. | ✔️ | ✔️ | ✔️ |
279+
| `setSize` | Resizes the window to `width` and `height`. | ✔️ | ✔️ | ✔️ |
280+
| `setMinimumSize` | Sets the minimum size of window to `width` and `height`. | ✔️ | ✔️ | ✔️ |
281+
| `setMaximumSize` | Sets the maximum size of window to `width` and `height`. | ✔️ | ✔️ | ✔️ |
282+
| `isResizable` | Returns `bool` - Whether the window can be manually resized by the user. | ✔️ | ✔️ | ✔️ |
283+
| `setResizable` | Sets whether the window can be manually resized by the user. | ✔️ | ✔️ | ✔️ |
284+
| `isMovable` | Returns `bool` - Whether the window can be moved by user. On Linux always returns `true`. || ✔️ ||
285+
| `setMovable` | Sets whether the window can be moved by user. On Linux does nothing. || ✔️ ||
286+
| `isMinimizable` | Returns `bool` - Whether the window can be manually minimized by the user. On Linux always returns `true`. || ✔️ | ✔️ |
287+
| `setMinimizable` | Sets whether the window can be manually minimized by user. On Linux does nothing. || ✔️ | ✔️ |
288+
| `isClosable` | Returns `bool` - Whether the window can be manually closed by user. On Linux always returns `true`. | ✔️ | ✔️ | ✔️ |
289+
| `setClosable` | Sets whether the window can be manually closed by user. On Linux does nothing. | ✔️ | ✔️ | ✔️ |
290+
| `isAlwaysOnTop` | Returns `bool` - Whether the window is always on top of other windows. | ✔️ | ✔️ | ✔️ |
291+
| `setAlwaysOnTop` | Sets whether the window should show always on top of other windows. | ✔️ | ✔️ | ✔️ |
292+
| `getTitle` | Returns `String` - The title of the native window. | ✔️ | ✔️ | ✔️ |
293+
| `setTitle` | Changes the title of native window to title. | ✔️ | ✔️ | ✔️ |
294+
| `setTitleBarStyle` | Changes the title bar style of native window. || ✔️ | ✔️ |
295+
| `setSkipTaskbar` | Makes the window not show in the taskbar / dock. | ✔️ | ✔️ | ✔️ |
296+
| `hasShadow` | Returns `bool` - Whether the window has a shadow. || ✔️ ||
297+
| `setHasShadow` | Sets whether the window should have a shadow. || ✔️ ||
298+
| `startDragging` | - | ✔️ | ✔️ | ✔️ |
298299

299300
### WindowListener
300301

0 commit comments

Comments
 (0)