将窗户拖动点扑来
我的Flutter应用程序利用了相对较新的Windows构建工具和社区fluent_ui
软件包。
为了使我的应用程序看起来更本地化,我选择使用window_manager
软件包删除默认的Windows标题栏并实现我自己的。但是,这引入了无法通过拖动顶部来移动窗口的问题。
有没有办法使小部件成为窗口阻力点可以允许这样做?
My Flutter application makes use of the relatively new Windows build tools and the community fluent_ui
package.
In an attempt to make my application look more native, I have opted to remove the default Windows title bar using the window_manager
package and implement my own. However, this introduces the issue of not being able to move the window by dragging the top of it.
Is there a way to make a widget a window drag point to allow for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我最近通过制作DraggableAppbar找到了解决方案。我还使用 window_manager 软件包将窗口控制按钮添加到appbar。
解决方案:在脚手架中使用DraggableAppbar而不是Appbar。
I recently found a solution by making DraggableAppBar. I'm also using window_manager package to add window control buttons to appbar.
Solution: use DraggableAppBar instead of AppBar in scaffold.