feat: flutter增加长按功能

This commit is contained in:
2026-07-14 14:25:58 +08:00
parent 2fdf3c3b9e
commit 37fccec6af
3 changed files with 64 additions and 0 deletions

View File

@@ -202,6 +202,8 @@ class _ControllerHomeState extends State<ControllerHome> {
ControlCommands.swipe(x1, y1, x2, y2, d)),
onKey: (k, a) => _controller
?.sendControlCommand(ControlCommands.key(k, a)),
onLongPress: (x, y) => _controller
?.sendControlCommand(ControlCommands.longPress(x, y)),
),
],
),