File tree 5 files changed +21
-26
lines changed
5 files changed +21
-26
lines changed Original file line number Diff line number Diff line change
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
+
1
10
## 0.1.1
2
11
3
- - [ macos] Support macOS < 10.15 #4
12
+ * [ macos] Support macOS < 10.15 #4
4
13
5
14
## 0.1.0
6
15
7
- - First release.
16
+ * First release.
Original file line number Diff line number Diff line change 26
26
- [ Linux requirements] ( #linux-requirements )
27
27
- [ 用法] ( #用法 )
28
28
- [ 谁在用使用它?] ( #谁在用使用它 )
29
- - [ API] ( #api )
30
- - [ LocalNotifier] ( #localnotifier )
31
29
- [ 相关链接] ( #相关链接 )
32
30
- [ 许可证] ( #许可证 )
33
31
47
45
48
46
``` yaml
49
47
dependencies :
50
- local_notifier : ^0.1.1
48
+ local_notifier : ^0.1.2
51
49
` ` `
52
50
53
51
或
@@ -86,6 +84,9 @@ notification.onClose = () {
86
84
notification.onClick = () {
87
85
print('onClick ${notification.identifier}');
88
86
};
87
+ notification?.onClickAction = (actionIndex) {
88
+ print('onClickAction ${notification?.identifier} - $actionIndex');
89
+ };
89
90
90
91
notification.show();
91
92
```
@@ -96,14 +97,6 @@ notification.show();
96
97
97
98
- [ Biyi (比译)] ( https://biyidev.com/ ) - 一个便捷的翻译和词典应用。
98
99
99
- ## API
100
-
101
- ### LocalNotifier
102
-
103
- | Method | Description | Linux | macOS | Windows |
104
- | -------- | -------------------- | ----- | ----- | ------- |
105
- | ` notify ` | 立即向用户显示通知。 | ✔️ | ✔️ | ✔️ |
106
-
107
100
## 相关链接
108
101
109
102
- https://github.com/mohabouje/WinToast
Original file line number Diff line number Diff line change @@ -26,8 +26,6 @@ English | [简体中文](./README-ZH.md)
26
26
- [ Linux requirements] ( #linux-requirements )
27
27
- [ Usage] ( #usage )
28
28
- [ Who's using it?] ( #whos-using-it )
29
- - [ API] ( #api )
30
- - [ LocalNotifier] ( #localnotifier )
31
29
- [ Related Links] ( #related-links )
32
30
- [ License] ( #license )
33
31
@@ -47,7 +45,7 @@ Add this to your package's pubspec.yaml file:
47
45
48
46
``` yaml
49
47
dependencies :
50
- local_notifier : ^0.1.1
48
+ local_notifier : ^0.1.2
51
49
` ` `
52
50
53
51
Or
@@ -86,6 +84,9 @@ notification.onClose = () {
86
84
notification.onClick = () {
87
85
print('onClick ${notification.identifier}');
88
86
};
87
+ notification?.onClickAction = (actionIndex) {
88
+ print('onClickAction ${notification?.identifier} - $actionIndex');
89
+ };
89
90
90
91
notification.show();
91
92
```
@@ -96,14 +97,6 @@ notification.show();
96
97
97
98
- [ Biyi (比译)] ( https://biyidev.com/ ) - A convenient translation and dictionary app.
98
99
99
- ## API
100
-
101
- ### LocalNotifier
102
-
103
- | Method | Description | Linux | macOS | Windows |
104
- | -------- | ----------------------------------------------- | ----- | ----- | ------- |
105
- | ` notify ` | Immediately shows the notification to the user. | ✔️ | ✔️ | ✔️ |
106
-
107
100
## Related Links
108
101
109
102
- https://github.com/mohabouje/WinToast
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ packages:
87
87
path: ".."
88
88
relative: true
89
89
source: path
90
- version: "0.1.1 "
90
+ version: "0.1.2 "
91
91
matcher:
92
92
dependency: transitive
93
93
description:
Original file line number Diff line number Diff line change 1
1
name : local_notifier
2
2
description : This plugin allows Flutter desktop apps to displaying local notifications.
3
- version : 0.1.1
3
+ version : 0.1.2
4
4
homepage : https://github.com/leanflutter/local_notifier
5
5
6
6
platforms :
You can’t perform that action at this time.
0 commit comments