Skip to content

Commit

Permalink
v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lijy91 committed Aug 27, 2022
1 parent 0816f5e commit 641bbad
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.0

* [macos] Implemented ` setIconPosition` method. (#25)

## 0.1.8

* [windows] getBounds method returns null when not initialized
Expand Down
3 changes: 2 additions & 1 deletion README-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

```yaml
dependencies:
tray_manager: ^0.1.8
tray_manager: ^0.2.0
```
Expand Down Expand Up @@ -185,6 +185,7 @@ class _HomePageState extends State<HomePage> with TrayListener {
| ---------------- | -------------------------------- | ----- | ----- | ------- |
| destroy | 立即销毁托盘图标 | ✔️ | ✔️ | ✔️ |
| setIcon | 设置与此托盘图标相关的图片。 | ✔️ | ✔️ | ✔️ |
| setIconPosition | 设置托盘图标的图标位置。 || ✔️ ||
| setToolTip | 设置此托盘图标的悬停文本。 || ✔️ | ✔️ |
| setContextMenu | 设置此图标的上下文菜单。 | ✔️ | ✔️ | ✔️ |
| popUpContextMenu | 弹出托盘图标的上下文菜单。 || ✔️ | ✔️ |
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Add this to your package's pubspec.yaml file:

```yaml
dependencies:
tray_manager: ^0.1.8
tray_manager: ^0.2.0
```
Or
Expand Down Expand Up @@ -185,6 +185,7 @@ class _HomePageState extends State<HomePage> with TrayListener {
| ---------------- | ---------------------------------------------- | ----- | ----- | ------- |
| destroy | Destroys the tray icon immediately. | ✔️ | ✔️ | ✔️ |
| setIcon | Sets the image associated with this tray icon. | ✔️ | ✔️ | ✔️ |
| setIconPosition | Sets the icon position of the tray icon. || ✔️ ||
| setToolTip | Sets the hover text for this tray icon. || ✔️ | ✔️ |
| setContextMenu | Sets the context menu for this icon. | ✔️ | ✔️ | ✔️ |
| popUpContextMenu | Pops up the context menu of the tray icon. || ✔️ | ✔️ |
Expand Down
20 changes: 20 additions & 0 deletions example/lib/pages/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,26 @@ class _HomePageState extends State<HomePage> with TrayListener {
),
onTap: () => _handleSetIcon(_kIconTypeDefault),
),
PreferenceListItem(
title: Text('setIconPosition'),
accessoryView: Row(
children: [
CupertinoButton(
child: Text('left'),
onPressed: () {
trayManager.setIconPosition(TrayIconPositon.left);
},
),
CupertinoButton(
child: Text('right'),
onPressed: () {
trayManager.setIconPosition(TrayIconPositon.right);
},
),
],
),
onTap: () => _handleSetIcon(_kIconTypeDefault),
),
PreferenceListItem(
title: Text('setToolTip'),
onTap: () async {
Expand Down
2 changes: 1 addition & 1 deletion example/macos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 6eac6b3292e5142cfc23bdeb71848a40ec51c14c

COCOAPODS: 1.11.2
COCOAPODS: 1.11.3
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.1.8"
version: "0.2.0"
vector_math:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: tray_manager
description: This plugin allows Flutter desktop apps to defines system tray.
version: 0.1.8
version: 0.2.0
homepage: https://github.com/leanflutter/tray_manager

platforms:
Expand Down

0 comments on commit 641bbad

Please sign in to comment.