Skip to content

Commit

Permalink
0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lijy91 committed Apr 8, 2023
1 parent a6af58e commit 8faa5c0
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 14 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 0.3.2

* [macos] Feature to set labeled badge on taskbar aka dock (#305)
* [linux] remove the margins of the window frame (#318)
* Add AlwaysOnBottom support for Windows (#306)
* [Windows] make setMinimum/MaximumSize() dpi change awareable (#231)
* remove frameless on set title bar style on macos (#240)
* chore: Add windowButtonVisibility to WindowOptions

## 0.3.1

* [linux] avoid removing shadows if no title is set (#297)
Expand Down
16 changes: 12 additions & 4 deletions README-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@
- [isMinimizable `macos` `windows`](#isminimizable--macos--windows)
- [setMinimizable `macos` `windows`](#setminimizable--macos--windows)
- [isClosable `windows`](#isclosable--windows)
- [isMaximizable `windows`](#ismaximizable--windows)
- [isMaximizable `macos` `windows`](#ismaximizable--macos--windows)
- [setMaximizable](#setmaximizable)
- [setClosable `macos` `windows`](#setclosable--macos--windows)
- [isAlwaysOnTop](#isalwaysontop)
- [setAlwaysOnTop](#setalwaysontop)
- [isAlwaysOnBottom](#isalwaysonbottom)
- [setAlwaysOnBottom `linux`](#setalwaysonbottom--linux)
- [setAlwaysOnBottom `linux` `windows`](#setalwaysonbottom--linux--windows)
- [getTitle](#gettitle)
- [setTitle](#settitle)
- [setTitleBarStyle](#settitlebarstyle)
Expand Down Expand Up @@ -136,7 +136,7 @@

```yaml
dependencies:
window_manager: ^0.3.1
window_manager: ^0.3.2
```
Expand Down Expand Up @@ -700,7 +700,7 @@ Sets whether the window should show always on top of other windows.

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

##### setAlwaysOnBottom `linux`
##### setAlwaysOnBottom `linux` `windows`

Sets whether the window should show always below other windows.

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


##### setBadgeLabel `macos`

Set/unset label on taskbar(dock) app icon

Note that it's required to request access at your AppDelegate.swift like this:
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge])


##### hasShadow `macos` `windows`

Returns `bool` - Whether the window has a shadow. On Windows, always returns true unless window is frameless.
Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Add this to your package's `pubspec.yaml` file:

```yaml
dependencies:
window_manager: ^0.3.1
window_manager: ^0.3.2
```
Or
Expand Down Expand Up @@ -699,7 +699,7 @@ Sets whether the window should show always on top of other windows.

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

##### setAlwaysOnBottom `linux`
##### setAlwaysOnBottom `linux` `windows`

Sets whether the window should show always below other windows.

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


##### setBadgeLabel `macos`

Set/unset label on taskbar(dock) app icon

Note that it's required to request access at your AppDelegate.swift like this:
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge])


##### hasShadow `macos` `windows`

Returns `bool` - Whether the window has a shadow. On Windows, always returns true unless window is frameless.
Expand Down
6 changes: 3 additions & 3 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,10 @@ packages:
dependency: "direct main"
description:
name: tray_manager
sha256: "174b817cb666af542e9abdbc745fe244fd3dc53466e8a6da4d85398159342f10"
sha256: b1975a05e0c6999e983cf9a58a6a098318c896040ccebac5398a3cc9e43b9c69
url: "https://pub.dev"
source: hosted
version: "0.1.9"
version: "0.2.0"
typed_data:
dependency: transitive
description:
Expand Down Expand Up @@ -325,7 +325,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.3.1"
version: "0.3.2"
sdks:
dart: ">=2.18.0 <3.0.0"
flutter: ">=2.5.0"
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies:

bot_toast: ^4.0.1
preference_list: ^0.0.1
tray_manager: ^0.1.7
tray_manager: ^0.2.0

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
Expand Down
4 changes: 2 additions & 2 deletions lib/src/window_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,8 @@ class WindowManager {
/// Set/unset label on taskbar(dock) app icon
///
/// Note that it's required to request access at your AppDelegate.swift like this:
/// UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge]) <...>
/// ^---
/// UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge])
///
/// @platforms macos
Future<void> setBadgeLabel([String? label]) async {
final Map<String, dynamic> arguments = {
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: window_manager
description: This plugin allows Flutter desktop apps to resizing and repositioning the window.
version: 0.3.1
version: 0.3.2
homepage: https://github.com/leanflutter/window_manager

platforms:
Expand All @@ -17,7 +17,7 @@ dependencies:
sdk: flutter

path: ^1.8.2
screen_retriever: ^0.1.4
screen_retriever: ^0.1.6

dev_dependencies:
dependency_validator: ^3.0.0
Expand Down

0 comments on commit 8faa5c0

Please sign in to comment.