Skip to content

Commit 761d5a8

Browse files
committed
Update README files to include known issues with app_links compatibility and provide temporary solutions; modify example pubspec.yaml to use forked app_links package.
1 parent 0ec263c commit 761d5a8

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

README-ZH.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,27 @@
4646
| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
4747
| ![](https://github.com/leanflutter/tray_manager/blob/main/screenshots/macos.png?raw=true) | ![](https://github.com/leanflutter/tray_manager/blob/main/screenshots/linux.png?raw=true) | ![image](https://github.com/leanflutter/tray_manager/blob/main/screenshots/windows.png?raw=true) |
4848

49+
## 已知问题
50+
51+
### 与 app_links 不兼容
52+
53+
当同时使用 `app_links` 包和 `tray_manager` 时,你可能会发现插件无法正常工作。这是因为 `app_links` 在内部阻止了事件传播,导致菜单点击事件无法触发。
54+
55+
要解决此问题:
56+
57+
1. 使用我的 `app_links` 包分支版本,等待我的 PR 被合并: https://github.com/llfbandit/app_links/pull/179
58+
59+
```yaml
60+
dependencies:
61+
app_links:
62+
git:
63+
url: https://github.com/lijy91/app_links.git
64+
```
65+
66+
> 注意:这是一个临时解决方案,一旦我的 PR 被合并,我将移除这个仓库。
67+
68+
2. 使用 [protocol_handler](https://github.com/leanflutter/protocol_handler) 包代替 `app_links` 包。
69+
4970
## 快速开始
5071

5172
### 安装
@@ -175,7 +196,7 @@ class _HomePageState extends State<HomePage> with TrayListener {
175196

176197
## 谁在用使用它?
177198

178-
- [Airclap](https://airclap.app/) - 任何文件,任意设备,随意发送。简单好用的跨平台高速文件传输APP
199+
- [Airclap](https://airclap.app/) - 任何文件,任意设备,随意发送。简单好用的跨平台高速文件传输 APP
179200
- [Biyi (比译)](https://biyidev.com/) - 一个便捷的翻译和词典应用程序。
180201

181202
## API

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,27 @@ English | [简体中文](./README-ZH.md)
4646
| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
4747
| ![](https://github.com/leanflutter/tray_manager/blob/main/screenshots/macos.png?raw=true) | ![](https://github.com/leanflutter/tray_manager/blob/main/screenshots/linux.png?raw=true) | ![image](https://github.com/leanflutter/tray_manager/blob/main/screenshots/windows.png?raw=true) |
4848

49+
## Known Issues
50+
51+
### Not Working with app_links
52+
53+
When using `app_links` package alongside `tray_manager`, you may find that plugin does not work properly. This is because `app_links` internally blocks event propagation, preventing menu click events from being triggered.
54+
55+
To resolve this issue:
56+
57+
1. Use my forked version of `app_links` package and wait for my PR to be merged: https://github.com/llfbandit/app_links/pull/179
58+
59+
```yaml
60+
dependencies:
61+
app_links:
62+
git:
63+
url: https://github.com/lijy91/app_links.git
64+
```
65+
66+
> Note: This is a temporary solution, and I will remove this repository once my PR is merged.
67+
68+
2. Use [protocol_handler](https://github.com/leanflutter/protocol_handler) package instead of `app_links` package.
69+
4970
## Quick Start
5071

5172
### Installation

0 commit comments

Comments
 (0)