flutter_native_splash
flutter_native_splash copied to clipboard
[Android 12+] Splash screen icon appears low quality despite using high-resolution images
Attention: If you open a bug report without sufficient details, it will be closed. Is your question related to Android 12? Please check the notes on Android 12 first (https://pub.dev/packages/flutter_native_splash#android-12-support).
Describe the bug
On Android 12+, the icon displayed when the splash screen starts appears with low quality and jagged edges. We tried several adjustments and resolutions, including sizes like 960x960 and 1152x1152, but the problem persists. The icon quality remains poor only on Android 12+, even with configurations that work correctly on earlier Android versions.
Configuration flutter_native_splash: image: assets/images/splash.png android: true ios: true web: false android_gravity: "center_vertical" android_screen_orientation: "portrait" color: "#1861A7" color_dark: "#1861A7" ios_content_mode: center fullscreen: true
android_12: color: "#1861A7" #image: assets/images/splash_android_960.png image: assets/images/splash_android_1152.png icon_background_color: "#1861A7"
Paste the flutter_native_splash section of your yaml config.
Device (please complete the following information): Device: iData K3Pro OS: Android 12 (API level 34-ext10) Resolution: 480 x 800 px Logical Resolution: 320 x 534 dp Density: 240 dpi ABI: arm64-v8a
To Reproduce Steps to reproduce the behavior, using the example app: Configure flutter_native_splash with a splash image (960x960 or 1152x1152). Run the app on an Android 12+ device, such as the iData K3Pro. Notice the low-quality splash image when the app starts.
Screenshots The splash logo looks pixelated and of strange quality.
Additional context The issue seems to be specifically related to Android 12’s handling of splash screens. Despite following the package documentation guidelines, the splash icon continues to appear in low resolution. This directly affects the user's first impression when opening the app.
Use only vector drawable for Android 12+, The android splash API doesnt works well with pngs... only generate images for android below 12 because they are will be used from different folders for different sizes but Andoid 12+ will use vector and it will be as big as need without pixalation or blur
Good morning, how are you? Can you give me an example of how to use vectors, because when I was testing I did it and it didn't work as it should. Thank you in advance.
https://github.com/jonbhanson/flutter_native_splash/issues/766
Here is the other issue which I think is duplicate with this. I add there code snippet as well
The problem is exactly that, I made the adjustments but something must be missing, some folder/file that Android generates and that the Flutter project cannot generate because the image is not correct, I saw that it is necessary to use:
android { defaultConfig { vectorDrawables.useSupportLibrary = true } }
but then it starts to give some errors here in the project that does not contain theme.xml, color.xml files maybe you do not have a repository like these changes that made it work for you so I can see your configurations in detail?
then I can find out what I'm doing wrong here.
Thank you.
Em seg., 9 de jun. de 2025 às 08:27, bartalusCsaba @.***> escreveu:
bartalusCsaba left a comment (jonbhanson/flutter_native_splash#789) https://github.com/jonbhanson/flutter_native_splash/issues/789#issuecomment-2955514480
#766 https://github.com/jonbhanson/flutter_native_splash/issues/766
Here is the other issue which I think is duplicate with this. I add there code snippet as well
— Reply to this email directly, view it on GitHub https://github.com/jonbhanson/flutter_native_splash/issues/789#issuecomment-2955514480, or unsubscribe https://github.com/notifications/unsubscribe-auth/BSQRRCVHKMGMVVCSGF7HDY33CVVTBAVCNFSM6AAAAAB5TYKRZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNJVGUYTINBYGA . You are receiving this because you authored the thread.Message ID: @.***>
-- *Atenciosamente *Eduardo Comparin | Sysmo Sistemas Ltda São Miguel do Oeste - SC Fone: 49 3631.0600 | Ramal: www.sysmo.com.br Proteja os dados e preze pela confidencialidade das informações. Não compartilhe qualquer parte desta mensagem com terceiros sem o consentimento. Lei Geral de Proteção de Dados Nº 13.709/2018.