简体   繁体   English

为什么 flutter 应用程序的启动屏幕或启动屏幕图像未以高质量显示

[英]why splash screen or launch screen image of flutter app is not being shown in high quality

In my flutter app i have set a *.PNG image as splash screen or starup screen to be shown when this app starts but it is not being shown in high quality and i have tried to set another high quality image then image spreads outside of the screen (kind of over zoomed) but i have seen many app's flash screen is in good quality, i have seen Splash Screen logo displayed is of poor quality i am seeking if there is another easy way to do so please let me know thanks在我的 flutter 应用程序中,我将 *.PNG 图像设置为启动屏幕或启动屏幕,以在此应用程序启动时显示,但它没有以高质量显示,我尝试设置另一个高质量图像,然后图像传播到外部屏幕(有点放大),但我看到很多应用程序的 flash 屏幕质量很好,我看到显示的启动画面标志质量很差,我正在寻找是否有其他简单的方法,请告诉我谢谢

Things i am using (Flutter, on vscode, for android, on windows 10)我正在使用的东西(颤振,在 vscode 上,对于 android,在 windows 10 上)

Using a static png file will almost always give you such problems.使用 static png文件几乎总是会给你这样的问题。 You need to consider different screen sizes and dpi for different devices.您需要为不同的设备考虑不同的屏幕尺寸和 dpi。 If you still want to use your own png convert it into svg with this site https://picsvg.com/ and convert it into material usable icon with this site https://android-material-icon-generator.bitdroid.de/ .如果您仍想使用自己的png将其转换为svg与此站点https://picsg.com/并使用此站点将其转换为可用的材料图标Z5E056C500A1C4B6A7110B50D807BADEd5Z://android- material-icon-gen . It is easy and will save you much effort.这很容易,并且会为您节省很多精力。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM