Skip to content

Commit 8faa5c0

Browse files
committed
0.3.2
1 parent a6af58e commit 8faa5c0

File tree

7 files changed

+39
-14
lines changed

7 files changed

+39
-14
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 0.3.2
2+
3+
* [macos] Feature to set labeled badge on taskbar aka dock (#305)
4+
* [linux] remove the margins of the window frame (#318)
5+
* Add AlwaysOnBottom support for Windows (#306)
6+
* [Windows] make setMinimum/MaximumSize() dpi change awareable (#231)
7+
* remove frameless on set title bar style on macos (#240)
8+
* chore: Add windowButtonVisibility to WindowOptions
9+
110
## 0.3.1
211

312
* [linux] avoid removing shadows if no title is set (#297)

README-ZH.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@
7777
- [isMinimizable `macos` `windows`](#isminimizable--macos--windows)
7878
- [setMinimizable `macos` `windows`](#setminimizable--macos--windows)
7979
- [isClosable `windows`](#isclosable--windows)
80-
- [isMaximizable `windows`](#ismaximizable--windows)
80+
- [isMaximizable `macos` `windows`](#ismaximizable--macos--windows)
8181
- [setMaximizable](#setmaximizable)
8282
- [setClosable `macos` `windows`](#setclosable--macos--windows)
8383
- [isAlwaysOnTop](#isalwaysontop)
8484
- [setAlwaysOnTop](#setalwaysontop)
8585
- [isAlwaysOnBottom](#isalwaysonbottom)
86-
- [setAlwaysOnBottom `linux`](#setalwaysonbottom--linux)
86+
- [setAlwaysOnBottom `linux` `windows`](#setalwaysonbottom--linux--windows)
8787
- [getTitle](#gettitle)
8888
- [setTitle](#settitle)
8989
- [setTitleBarStyle](#settitlebarstyle)
@@ -136,7 +136,7 @@
136136

137137
```yaml
138138
dependencies:
139-
window_manager: ^0.3.1
139+
window_manager: ^0.3.2
140140
```
141141
142142
@@ -700,7 +700,7 @@ Sets whether the window should show always on top of other windows.
700700

701701
Returns `bool` - Whether the window is always below other windows.
702702

703-
##### setAlwaysOnBottom `linux`
703+
##### setAlwaysOnBottom `linux` `windows`
704704

705705
Sets whether the window should show always below other windows.
706706

@@ -739,6 +739,14 @@ Sets progress value in progress bar. Valid range is [0, 1.0].
739739
Sets window/taskbar icon.
740740

741741

742+
##### setBadgeLabel `macos`
743+
744+
Set/unset label on taskbar(dock) app icon
745+
746+
Note that it's required to request access at your AppDelegate.swift like this:
747+
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge])
748+
749+
742750
##### hasShadow `macos` `windows`
743751

744752
Returns `bool` - Whether the window has a shadow. On Windows, always returns true unless window is frameless.

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Add this to your package's `pubspec.yaml` file:
136136

137137
```yaml
138138
dependencies:
139-
window_manager: ^0.3.1
139+
window_manager: ^0.3.2
140140
```
141141
142142
Or
@@ -699,7 +699,7 @@ Sets whether the window should show always on top of other windows.
699699

700700
Returns `bool` - Whether the window is always below other windows.
701701

702-
##### setAlwaysOnBottom `linux`
702+
##### setAlwaysOnBottom `linux` `windows`
703703

704704
Sets whether the window should show always below other windows.
705705

@@ -738,6 +738,14 @@ Sets progress value in progress bar. Valid range is [0, 1.0].
738738
Sets window/taskbar icon.
739739

740740

741+
##### setBadgeLabel `macos`
742+
743+
Set/unset label on taskbar(dock) app icon
744+
745+
Note that it's required to request access at your AppDelegate.swift like this:
746+
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge])
747+
748+
741749
##### hasShadow `macos` `windows`
742750

743751
Returns `bool` - Whether the window has a shadow. On Windows, always returns true unless window is frameless.

example/pubspec.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,10 @@ packages:
283283
dependency: "direct main"
284284
description:
285285
name: tray_manager
286-
sha256: "174b817cb666af542e9abdbc745fe244fd3dc53466e8a6da4d85398159342f10"
286+
sha256: b1975a05e0c6999e983cf9a58a6a098318c896040ccebac5398a3cc9e43b9c69
287287
url: "https://pub.dev"
288288
source: hosted
289-
version: "0.1.9"
289+
version: "0.2.0"
290290
typed_data:
291291
dependency: transitive
292292
description:
@@ -325,7 +325,7 @@ packages:
325325
path: ".."
326326
relative: true
327327
source: path
328-
version: "0.3.1"
328+
version: "0.3.2"
329329
sdks:
330330
dart: ">=2.18.0 <3.0.0"
331331
flutter: ">=2.5.0"

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies:
2222

2323
bot_toast: ^4.0.1
2424
preference_list: ^0.0.1
25-
tray_manager: ^0.1.7
25+
tray_manager: ^0.2.0
2626

2727
# The following adds the Cupertino Icons font to your application.
2828
# Use with the CupertinoIcons class for iOS style icons.

lib/src/window_manager.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,8 +550,8 @@ class WindowManager {
550550
/// Set/unset label on taskbar(dock) app icon
551551
///
552552
/// Note that it's required to request access at your AppDelegate.swift like this:
553-
/// UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge]) <...>
554-
/// ^---
553+
/// UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge])
554+
///
555555
/// @platforms macos
556556
Future<void> setBadgeLabel([String? label]) async {
557557
final Map<String, dynamic> arguments = {

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: window_manager
22
description: This plugin allows Flutter desktop apps to resizing and repositioning the window.
3-
version: 0.3.1
3+
version: 0.3.2
44
homepage: https://github.com/leanflutter/window_manager
55

66
platforms:
@@ -17,7 +17,7 @@ dependencies:
1717
sdk: flutter
1818

1919
path: ^1.8.2
20-
screen_retriever: ^0.1.4
20+
screen_retriever: ^0.1.6
2121

2222
dev_dependencies:
2323
dependency_validator: ^3.0.0

0 commit comments

Comments
 (0)