desktop_click_outside 0.0.1
desktop_click_outside: ^0.0.1 copied to clipboard
A desktop Flutter plugin that passively watches for mouse clicks outside a popup window. Supports Windows, macOS, and Linux (X11).
0.0.1 #
- 新增桌面端弹窗外部点击监听能力,支持 Windows、macOS 与 Linux(X11)。
- 提供
onClickOutside事件流,原生层被动监听并上报弹窗外鼠标点击。 startWatching支持gracePeriod宽限期参数(默认 300ms),避免打开弹窗的点击立即触发关闭。- 提供
isSupported平台能力检测,Wayland 下返回false。
- Add desktop outside-click watching for Windows, macOS, and Linux (X11).
- Provide an
onClickOutsideevent stream reported passively from the native layer. - Support a
gracePeriodargument (default 300ms) instartWatchingso the click that opened the popup cannot immediately close it. - Add
isSupportedcapability detection; returnsfalseon Wayland.