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

[BUG] Flutter Native Splash Show Two Images #653

Closed biondiBagasta closed 3 months ago

biondiBagasta commented 3 months ago

native_splash My Setting :

flutter_native_splash:
  color: "#ffffff"
  color_dark: "#ffffff"
  image: assets/splash-screen.png
  image_dark: assets/splash-screen.png
  branding: assets/splash-screen.png
  branding_dark: assets/splash-screen.png
  android: true
  ios: false
  web: false
  android_gravity: fill
  android_12:
    image: assets/splash-screen.png
    icon_background_color: "#ffffff"
    image_dark: assets/splash-screen.png
    icon_background_color_dark: "#ffffff"
jonbhanson commented 3 months ago

Try removing the branding parameters. I think those are causing your problem.

Nico3652 commented 3 months ago

Hi @jonbhanson, I may have a related issue.

On iOS , i have added a first splash, and then I changed the splash image: and run the create command again. Now, when I launch the app I see the old splash (while 200ms) and very quick the new splash.

I tried to delete my app and install it again. I also run :remove command.

Can this use case be linked to this issue ? If not, what can I do to fix this ?

flutter_native_splash:
  color: "#F5EC73"
  color_dark: "#F5EC73"
  image: assets/logo_transparent.png
  image_dark: assets/logo_transparent.png
  web: false
  android: true
jonbhanson commented 3 months ago

@Nico3652 your problem sounds like the I see a flash of the wrong splash screen on iOS.

Nico3652 commented 3 months ago

Thanks I reboot my phone and it worked. The only thing I didn't try!