禁用桌面上抖动的高 DPI 缩放
是否可以禁用 flutter 应用程序的高 dpi 缩放? 我的布局效果很好,但是当比例因子设置为非常高时,应用程序会变得很小。
或者至少有一种方法可以考虑缩放?
Is it possible to disable the high dpi scaling for a flutter app?
My layout works well, but when the scale factor is set to something very high the app becomes tiny.
Or is there atleast a way to take the scaling into account?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我现在使用 响应式框架 包。这解决了我设置
defaultScale: true
时的缩放问题。添加断点时,可以自定义行为。我在我的
MaterialApp.OnGenerateRoute
中使用它:I am now using the responsive framework package. This solves the scaling problems for me when setting
defaultScale: true
. When adding breakpoints the behavior can be customized.I am using it in my
MaterialApp.OnGenerateRoute
: