File tree Expand file tree Collapse file tree 5 files changed +21
-26
lines changed
Expand file tree Collapse file tree 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+
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.
Original file line number Diff line number Diff line change 2626 - [ Linux requirements] ( #linux-requirements )
2727 - [ 用法] ( #用法 )
2828 - [ 谁在用使用它?] ( #谁在用使用它 )
29- - [ API] ( #api )
30- - [ LocalNotifier] ( #localnotifier )
3129 - [ 相关链接] ( #相关链接 )
3230 - [ 许可证] ( #许可证 )
3331
4745
4846``` yaml
4947dependencies :
50- local_notifier : ^0.1.1
48+ local_notifier : ^0.1.2
5149` ` `
5250
5351或
@@ -86,6 +84,9 @@ notification.onClose = () {
8684notification.onClick = () {
8785 print('onClick ${notification.identifier}');
8886};
87+ notification?.onClickAction = (actionIndex) {
88+ print('onClickAction ${notification?.identifier} - $actionIndex');
89+ };
8990
9091notification.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
Original file line number Diff line number Diff 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
4947dependencies :
50- local_notifier : ^0.1.1
48+ local_notifier : ^0.1.2
5149` ` `
5250
5351Or
@@ -86,6 +84,9 @@ notification.onClose = () {
8684notification.onClick = () {
8785 print('onClick ${notification.identifier}');
8886};
87+ notification?.onClickAction = (actionIndex) {
88+ print('onClickAction ${notification?.identifier} - $actionIndex');
89+ };
8990
9091notification.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
Original file line number Diff line number Diff 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:
Original file line number Diff line number Diff line change 11name : local_notifier
22description : This plugin allows Flutter desktop apps to displaying local notifications.
3- version : 0.1.1
3+ version : 0.1.2
44homepage : https://github.com/leanflutter/local_notifier
55
66platforms :
You can’t perform that action at this time.
0 commit comments