Skip to content

Commit 968b6af

Browse files
committed
0.2.1
1 parent 4b41e1a commit 968b6af

File tree

6 files changed

+71
-22
lines changed

6 files changed

+71
-22
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## 0.2.1
2+
3+
- Compatible with lower versions of dart #98
4+
- [macos & windows] Add `resized`, `moved` events. #28
5+
- [linux] Implement `getTitleBarHeight` metnod #49
6+
- [linux] Implement `getOpacity` metnod #44
7+
- Add `TitleBarStyle` enum #99
8+
- [linux] Implement `setAlwaysOnBottom` method #100
9+
- [windows] Removes crazy jittering when resizing window #103
10+
- [windows] Fix overflow on fullscreen and maximize #105
11+
- [windows] Implement `setHasShadow` and `hasShadow` methods #110
12+
- [windows] Fix setAlignment(Alignment.bottomRight) display position is not correct #112 #113
13+
114
## 0.2.0
215

316
- [linux] Implement `setTitleBarStyle` method

README-ZH.md

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,16 @@
7575
- [setClosable `macos` `windows`](#setclosable--macos--windows)
7676
- [isAlwaysOnTop](#isalwaysontop)
7777
- [setAlwaysOnTop](#setalwaysontop)
78+
- [isAlwaysOnBottom](#isalwaysonbottom)
79+
- [setAlwaysOnBottom `linux`](#setalwaysonbottom--linux)
7880
- [getTitle](#gettitle)
7981
- [setTitle](#settitle)
8082
- [setTitleBarStyle `macos` `windows`](#settitlebarstyle--macos--windows)
81-
- [getTitleBarHeight `macos` `windows`](#gettitlebarheight--macos--windows)
83+
- [getTitleBarHeight](#gettitlebarheight)
8284
- [setSkipTaskbar](#setskiptaskbar)
8385
- [setProgressBar `macos`](#setprogressbar--macos)
84-
- [hasShadow `macos`](#hasshadow--macos)
85-
- [setHasShadow `macos`](#sethasshadow--macos)
86+
- [hasShadow `macos` `windows`](#hasshadow--macos--windows)
87+
- [setHasShadow `macos` `windows`](#sethasshadow--macos--windows)
8688
- [getOpacity `macos` `windows`](#getopacity--macos--windows)
8789
- [setOpacity `macos` `windows`](#setopacity--macos--windows)
8890
- [setBrightness `macos` `windows`](#setbrightness--macos--windows)
@@ -99,7 +101,9 @@
99101
- [onWindowMinimize](#onwindowminimize)
100102
- [onWindowRestore](#onwindowrestore)
101103
- [onWindowResize](#onwindowresize)
104+
- [onWindowResized `macos` `windows`](#onwindowresized--macos--windows)
102105
- [onWindowMove](#onwindowmove)
106+
- [onWindowMoved `macos` `windows`](#onwindowmoved--macos--windows)
103107
- [onWindowEnterFullScreen](#onwindowenterfullscreen)
104108
- [onWindowLeaveFullScreen](#onwindowleavefullscreen)
105109
- [onWindowEvent](#onwindowevent)
@@ -121,7 +125,7 @@
121125

122126
```yaml
123127
dependencies:
124-
window_manager: ^0.2.0
128+
window_manager: ^0.2.1
125129
```
126130
127131
@@ -616,6 +620,15 @@ Returns `bool` - Whether the window is always on top of other windows.
616620

617621
Sets whether the window should show always on top of other windows.
618622

623+
##### isAlwaysOnBottom
624+
625+
Returns `bool` - Whether the window is always below other windows.
626+
627+
##### setAlwaysOnBottom `linux`
628+
629+
Sets whether the window should show always below other windows.
630+
631+
619632
##### getTitle
620633

621634
Returns `String` - The title of the native window.
@@ -629,11 +642,10 @@ Changes the title of native window to title.
629642
Changes the title bar style of native window.
630643

631644

632-
##### getTitleBarHeight `macos` `windows`
645+
##### getTitleBarHeight
633646

634647
Returns `int` - The title bar height of the native window.
635648

636-
637649
##### setSkipTaskbar
638650

639651
Makes the window not show in the taskbar / dock.
@@ -643,14 +655,14 @@ Makes the window not show in the taskbar / dock.
643655
Sets progress value in progress bar. Valid range is [0, 1.0].
644656

645657

646-
##### hasShadow `macos`
658+
##### hasShadow `macos` `windows`
647659

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

650662

651-
##### setHasShadow `macos`
663+
##### setHasShadow `macos` `windows`
652664

653-
Sets whether the window should have a shadow.
665+
Sets whether the window should have a shadow. On Windows, doesn't do anything unless window is frameless.
654666

655667

656668
##### getOpacity `macos` `windows`
@@ -719,10 +731,20 @@ Emitted when the window is restored from a minimized state.
719731

720732
Emitted after the window has been resized.
721733

734+
##### onWindowResized `macos` `windows`
735+
736+
Emitted once when the window has finished being resized.
737+
738+
722739
##### onWindowMove
723740

724741
Emitted when the window is being moved to a new position.
725742

743+
##### onWindowMoved `macos` `windows`
744+
745+
Emitted once when the window is moved to a new position.
746+
747+
726748
##### onWindowEnterFullScreen
727749

728750
Emitted when the window enters a full-screen state.

README.md

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,16 @@ English | [简体中文](./README-ZH.md)
7575
- [setClosable `macos` `windows`](#setclosable--macos--windows)
7676
- [isAlwaysOnTop](#isalwaysontop)
7777
- [setAlwaysOnTop](#setalwaysontop)
78-
- [isAlwaysOnBottom `linux`](#isalwaysonbottom-linux)
79-
- [setAlwaysOnBottom `linux`](#setalwaysonbottom-linux)
78+
- [isAlwaysOnBottom](#isalwaysonbottom)
79+
- [setAlwaysOnBottom `linux`](#setalwaysonbottom--linux)
8080
- [getTitle](#gettitle)
8181
- [setTitle](#settitle)
8282
- [setTitleBarStyle `macos` `windows`](#settitlebarstyle--macos--windows)
83-
- [getTitleBarHeight `macos` `windows`](#gettitlebarheight--macos--windows)
83+
- [getTitleBarHeight](#gettitlebarheight)
8484
- [setSkipTaskbar](#setskiptaskbar)
8585
- [setProgressBar `macos`](#setprogressbar--macos)
86-
- [hasShadow `macos`](#hasshadow--macos)
87-
- [setHasShadow `macos`](#sethasshadow--macos)
86+
- [hasShadow `macos` `windows`](#hasshadow--macos--windows)
87+
- [setHasShadow `macos` `windows`](#sethasshadow--macos--windows)
8888
- [getOpacity `macos` `windows`](#getopacity--macos--windows)
8989
- [setOpacity `macos` `windows`](#setopacity--macos--windows)
9090
- [setBrightness `macos` `windows`](#setbrightness--macos--windows)
@@ -101,7 +101,9 @@ English | [简体中文](./README-ZH.md)
101101
- [onWindowMinimize](#onwindowminimize)
102102
- [onWindowRestore](#onwindowrestore)
103103
- [onWindowResize](#onwindowresize)
104+
- [onWindowResized `macos` `windows`](#onwindowresized--macos--windows)
104105
- [onWindowMove](#onwindowmove)
106+
- [onWindowMoved `macos` `windows`](#onwindowmoved--macos--windows)
105107
- [onWindowEnterFullScreen](#onwindowenterfullscreen)
106108
- [onWindowLeaveFullScreen](#onwindowleavefullscreen)
107109
- [onWindowEvent](#onwindowevent)
@@ -123,7 +125,7 @@ Add this to your package's `pubspec.yaml` file:
123125

124126
```yaml
125127
dependencies:
126-
window_manager: ^0.2.0
128+
window_manager: ^0.2.1
127129
```
128130
129131
Or
@@ -618,14 +620,15 @@ Returns `bool` - Whether the window is always on top of other windows.
618620

619621
Sets whether the window should show always on top of other windows.
620622

621-
##### isAlwaysOnBottom `linux`
623+
##### isAlwaysOnBottom
622624

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

625-
##### setAlwaysOnBottom `linux`
627+
##### setAlwaysOnBottom `linux`
626628

627629
Sets whether the window should show always below other windows.
628630

631+
629632
##### getTitle
630633

631634
Returns `String` - The title of the native window.
@@ -639,11 +642,10 @@ Changes the title of native window to title.
639642
Changes the title bar style of native window.
640643

641644

642-
##### getTitleBarHeight `macos` `windows`
645+
##### getTitleBarHeight
643646

644647
Returns `int` - The title bar height of the native window.
645648

646-
647649
##### setSkipTaskbar
648650

649651
Makes the window not show in the taskbar / dock.
@@ -729,10 +731,20 @@ Emitted when the window is restored from a minimized state.
729731

730732
Emitted after the window has been resized.
731733

734+
##### onWindowResized `macos` `windows`
735+
736+
Emitted once when the window has finished being resized.
737+
738+
732739
##### onWindowMove
733740

734741
Emitted when the window is being moved to a new position.
735742

743+
##### onWindowMoved `macos` `windows`
744+
745+
Emitted once when the window is moved to a new position.
746+
747+
736748
##### onWindowEnterFullScreen
737749

738750
Emitted when the window enters a full-screen state.

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ packages:
197197
path: ".."
198198
relative: true
199199
source: path
200-
version: "0.2.0"
200+
version: "0.2.1"
201201
sdks:
202202
dart: ">=2.14.0 <3.0.0"
203203
flutter: ">=1.20.0"

lib/src/window_manager.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,8 @@ class WindowManager {
478478
}
479479

480480
/// Sets whether the window should show always below other windows.
481+
///
482+
/// @platforms linux
481483
Future<void> setAlwaysOnBottom(bool isAlwaysOnBottom) async {
482484
final Map<String, dynamic> arguments = {
483485
'isAlwaysOnBottom': isAlwaysOnBottom,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
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.2.0
3+
version: 0.2.1
44
homepage: https://github.com/leanflutter/window_manager
55

66
platforms:

0 commit comments

Comments
 (0)