问题描述 最近发现Flutter中引入像素较大的静态图片或者字体导致调试或者打包之后在高刷手机上帧率只有60的问题。 测试设备为小米13,可在开发者选项中直接打开帧率显示, 也可使用statsfl插件显示帧率 StatsFl( maxFps: 120, // Support custom FPS target (default is 60) align: Alignment.bottomCenter, //Alignment of statsbox child: MyApp(), ), 解决方案 可以适当缩小图片分辨率以及压缩图片。 1、PS中先将图片转换为智能对象,然后调整图像大小(按像素),之后保存图片。这样做可以最大限度保留清晰度。 Photopea | Online Photo Editor 【在线PS】PS软件网页版_ps在线图片处理工具photopea-江下科技在线应用 (onlinedo.cn) 【在线PS】PS软件网页版,ps在线图片处理工具photopea-稿定设计PS (gaoding.com) 2、图片压缩网站推荐...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with return
Contact return, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack