在 Flutter 中设置鼠标光标位置

发布于 2025-01-16 20:55:14 字数 87 浏览 0 评论 0原文

桌面版 Flutter 是否可以设置鼠标光标的位置?

我确信使用自定义插件可以做到这一点,但我希望有一个跨平台的 Dart 解决方案或现有的插件。

Is it possible to set the position of the mouse cursor using Flutter for desktop?

I'm sure this is possible using custom plugins, but I'm hoping for a cross-platform Dart solution or an existing plugin.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

拥抱没勇气 2025-01-23 20:55:14

Flutter 中没有内置此类功能。

There is no such functionality built into Flutter.

滴情不沾 2025-01-23 20:55:14

在 cpp 文件上创建一个方法通道并调用 SetCursorPos 函数。

SetCursorPos(int x, int y)

Make a method channel between and call SetCursorPos function on cpp file.

SetCursorPos(int x, int y)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文