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 214 forks source link

Google Pixel shows safe area in blue #591

Closed rivella50 closed 1 year ago

rivella50 commented 1 year ago

Describe the bug

I applied the create call to my current Flutter app. After that when starting the app on my Google Pixel 4a 5G the so far black painted top bar (which hosts the front camera) suddenly is painted in blue, which looks quite strange since now the navigation bar of my app is no more the top bar (see the screenshot below).

Configuration

flutter_native_splash:
  color: "#ffffff"
  image: assets/splash.png
  android_12:
    image: assets/android12splash.png
    color: "#ffffff"
    icon_background_color: "#ffffff"
  ios: false
  web: false

Device (please complete the following information):

To Reproduce Steps to reproduce the behavior, using the example app:

  1. Apply the create call
  2. Start the app on the mentioned device

Screenshots Screenshot 2023-09-10 at 14 47 18

jonbhanson commented 1 year ago

Hi @rivella50, I'm having trouble reproducing this. I used the package's example app with an emulator running API 34, and applied the create call.

During the splash screen the top bar is blue, as the example app config has set:

image

After the app loads, the top bar is purple, as the app has configured (deepPurple).

image

Can you advise how to reproduce?

rivella50 commented 1 year ago

Hi Jon, thanks for answering. To be honest i stopped using your plugin and configured everything manually which then worked. On a page which showed the problem i was using this structure in build:

return SafeArea(
  child: Scaffold(
    ...

And in main.dart i disabled the status bar (since it is a game) like this:

await SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: []);

I also found it really strange and couldn't explain. But as mentioned: it's not an issue anymore for me, although not solved.

jonbhanson commented 1 year ago

Sorry the package wasn't working for you.