Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android 12 showing app icon and not image #400

Closed
Roee-Tsur opened this issue Jul 25, 2022 · 6 comments
Closed

android 12 showing app icon and not image #400

Roee-Tsur opened this issue Jul 25, 2022 · 6 comments

Comments

@Roee-Tsur
Copy link

Hey,
I'm testing on a pixel 6 (android 12), when I start my app I see the app icon (currently default flutter icon) and not the asset I added.
I tested on android 11 emulator and it showed the right splash screen.

Since I'm using a pixel I guess it uses a google laucher so that shouldn't be a problem.

Can you help me solve this, please? I've been stuck for days.

this is my pubspec setup:
color: "#5bdabe"
color_dark: "#5bdabe"
image: assets/splash_logo.png
image_dark: assets/splash_logo.png
android12:
image_dark: assets/splash_logo.png
image: assets/splash_logo.png

@jonbhanson
Copy link
Owner

Did you see this note in the readme:

PLEASE NOTE: The splash screen may not appear when you launch the app from Android Studio. However, it should appear when you launch by clicking on the launch icon in Android.

@Roee-Tsur
Copy link
Author

Roee-Tsur commented Jul 26, 2022 via email

@jonbhanson
Copy link
Owner

jonbhanson commented Jul 31, 2022

Your config should have an android_12 section, not an android12 section.

@elliotrtd
Copy link

elliotrtd commented Sep 2, 2022

@jonbhanson This may be related to the dark mode settings.

In my app android_12 was NOT taking the value for image when in dark mode when image_dark was not defined. I had to force image_dark to use the same value, this was easily missed in another app and it was only whilst testing this one with dark mode left on I found the problem.

@patrick-enzo
Copy link

patrick-enzo commented Oct 25, 2022

@elliotrtd I also experienced this issue. The fix you mentioned worked for us as well.

@jonbhanson
Copy link
Owner

Thanks @elliotrtd for the heads up on this issue. I will push out an update that addresses this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants