jonbhanson / flutter_native_splash

Automatically generates native code for adding splash screens in Android and iOS. Customize with specific platform, background color and splash image.
https://pub.dev/packages/flutter_native_splash
MIT License
1.28k stars 200 forks source link

light mode background before dark mode background is shown #667

Closed rjahn closed 2 months ago

rjahn commented 2 months ago

iOS 16 iPhone 14

My config is:

flutter_native_splash: background_image: assets/bg.png background_image_dark: assets/bg_dark.png image: assets/logo.png branding: assets/branding.png branding_dark: assets/branding_dark.png

android_12: image: assets/logo.png color: "#78C9D8" color_dark: "#575757" branding: assets/branding.png branding_dark: assets/branding_dark.png

In dark mode phone setting, the deployed app-start shows the light mode background for some millis and fades to the back mode background. The light mode background is always shown in dark mode.

Is there a setting for hiding the light mode background in dark mode?

jonbhanson commented 2 months ago

Did you check out this question in the FAQ: I see a flash of the wrong splash screen on iOS.

rjahn commented 2 months ago

Yes, but didn't help.

I tried to configure the dark properties before the light properties in yaml file and this solved my problem. I don't think that this was a difference but I guess the second installation on the device solved my problem.