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.34k stars 213 forks source link

White Screen on Subsequent Launches in Emulator After Using flutter_native_splash #713

Closed Jalil07 closed 2 months ago

Jalil07 commented 3 months ago

Describe the bug:

After integrating the flutter_native_splash package, my app experiences an issue where the screen turns completely white on subsequent launches when run in an emulator. While the widgets are still interactive, they are not visible due to the white screen. This issue is not limited to a single project but affects all Flutter projects after the package has been used. The problem does not occur on physical devices, only in emulators.

Configuration: Inside pubspec.yaml

flutter_native_splash:
  color: "#FBEBD2"
  image: assets/images/splash_logo.png
  android: true
  ios: true

  android_12:
    color: "#FBEBD2"
    image: assets/images/splash_logo.png

Device (please complete the following information):

Device: Emulator OS: Windows 11 Emulator API Levels Tested: 31, 33, 35

To Reproduce

Steps to reproduce the behavior, using the example app:

Set the config on the example app to include flutter_native_splash. Run in an emulator configured with API levels 31, 33, or 35. Close the app and reopen it. Observe the white screen.

Screenshots in this screen shot i clicked the button for the sliders and it shows up but still all white spl

Additional context

The issue occurs across multiple projects after the package has been integrated. Testing on a second PC yielded the same results. Clearing the emulator data or reinstalling the app temporarily resolves the issue, but it reoccurs upon closing and reopening the app. Physical devices do not exhibit this issue, only emulators.

jonbhanson commented 3 months ago

I ran the package's example app on an emulator with API 35, but was not able to reproduce the behavior you describe. Can you reproduce the problem with the package's example app?

jonbhanson commented 2 months ago

Closed due to inactivity. Feel free to reopen if you are still having trouble.