Skip to content

Commit afb91a1

Browse files
committed
v0.1.2
1 parent 20eed34 commit afb91a1

File tree

5 files changed

+21
-26
lines changed

5 files changed

+21
-26
lines changed

CHANGELOG.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1+
## 0.1.2
2+
3+
* Implemented `close` method.
4+
* Implemented `destroy` method.
5+
* `LocalNotification` Add `onShow` event.
6+
* `LocalNotification` Add `onClose` event.
7+
* `LocalNotification` Add `onClick` event.
8+
* `LocalNotification` Add `onClickAction` event.
9+
110
## 0.1.1
211

3-
- [macos] Support macOS < 10.15 #4
12+
* [macos] Support macOS < 10.15 #4
413

514
## 0.1.0
615

7-
- First release.
16+
* First release.

README-ZH.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
- [Linux requirements](#linux-requirements)
2727
- [用法](#用法)
2828
- [谁在用使用它?](#谁在用使用它)
29-
- [API](#api)
30-
- [LocalNotifier](#localnotifier)
3129
- [相关链接](#相关链接)
3230
- [许可证](#许可证)
3331

@@ -47,7 +45,7 @@
4745

4846
```yaml
4947
dependencies:
50-
local_notifier: ^0.1.1
48+
local_notifier: ^0.1.2
5149
```
5250
5351
@@ -86,6 +84,9 @@ notification.onClose = () {
8684
notification.onClick = () {
8785
print('onClick ${notification.identifier}');
8886
};
87+
notification?.onClickAction = (actionIndex) {
88+
print('onClickAction ${notification?.identifier} - $actionIndex');
89+
};
8990
9091
notification.show();
9192
```
@@ -96,14 +97,6 @@ notification.show();
9697

9798
- [Biyi (比译)](https://biyidev.com/) - 一个便捷的翻译和词典应用。
9899

99-
## API
100-
101-
### LocalNotifier
102-
103-
| Method | Description | Linux | macOS | Windows |
104-
| -------- | -------------------- | ----- | ----- | ------- |
105-
| `notify` | 立即向用户显示通知。 | ✔️ | ✔️ | ✔️ |
106-
107100
## 相关链接
108101

109102
- https://github.com/mohabouje/WinToast

README.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ English | [简体中文](./README-ZH.md)
2626
- [Linux requirements](#linux-requirements)
2727
- [Usage](#usage)
2828
- [Who's using it?](#whos-using-it)
29-
- [API](#api)
30-
- [LocalNotifier](#localnotifier)
3129
- [Related Links](#related-links)
3230
- [License](#license)
3331

@@ -47,7 +45,7 @@ Add this to your package's pubspec.yaml file:
4745

4846
```yaml
4947
dependencies:
50-
local_notifier: ^0.1.1
48+
local_notifier: ^0.1.2
5149
```
5250
5351
Or
@@ -86,6 +84,9 @@ notification.onClose = () {
8684
notification.onClick = () {
8785
print('onClick ${notification.identifier}');
8886
};
87+
notification?.onClickAction = (actionIndex) {
88+
print('onClickAction ${notification?.identifier} - $actionIndex');
89+
};
8990
9091
notification.show();
9192
```
@@ -96,14 +97,6 @@ notification.show();
9697

9798
- [Biyi (比译)](https://biyidev.com/) - A convenient translation and dictionary app.
9899

99-
## API
100-
101-
### LocalNotifier
102-
103-
| Method | Description | Linux | macOS | Windows |
104-
| -------- | ----------------------------------------------- | ----- | ----- | ------- |
105-
| `notify` | Immediately shows the notification to the user. | ✔️ | ✔️ | ✔️ |
106-
107100
## Related Links
108101

109102
- https://github.com/mohabouje/WinToast

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ packages:
8787
path: ".."
8888
relative: true
8989
source: path
90-
version: "0.1.1"
90+
version: "0.1.2"
9191
matcher:
9292
dependency: transitive
9393
description:

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: local_notifier
22
description: This plugin allows Flutter desktop apps to displaying local notifications.
3-
version: 0.1.1
3+
version: 0.1.2
44
homepage: https://github.com/leanflutter/local_notifier
55

66
platforms:

0 commit comments

Comments
 (0)