-
Notifications
You must be signed in to change notification settings - Fork 214
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
Status/Notification bar still showing during splash screen on Android 12 #517
Comments
I am not aware of Android 12 having support for hiding the notification bar. |
Do you mean that there is nothing we can do about this? |
Yes |
But can we change the color of the status bar during the splash? Sometimes when the app launches, the status bar has the same color as the Splash Screen background colour, then it revert to black. |
Same problem on my Android, many other apps can hide their notification bar during splash screen showing. |
Or at least change the color of the notification/status bar this would be great |
@LastMonopoly are you talking about Android 12? Can you give me an example of an app that hides the notification bar on the native splash screen on Android 12? @Nathan617 I don't think it is possible to change the color of the notification bar on the splash screen in Android 12. Just now I opened a couple dozen apps and they all had the same color for the notification area as the splash screen. It appears from your post that EMUI must handle the splash screen differently from Android. |
I don't have a device with HarmonyOS or Xiaomi, so I am not able to test any changes that would improve compatibility on these operating systems. |
@jonbhanson Xiaomi is using Android 11, have you tested on Android 11? |
@LastMonopoly this package has been tested extensively with all recent versions of Android. Unfortunately, clones of Android like MIUI don't always work exactly the same as Android. Since I don't have any Xiaomi devices, there is no way for me to determine what needs to be changed to make the splash screen work the same as on Android. But like this example, if an Xiaomi user can tell me what needs to be changed and I can confirm it, I am happy to make changes to accommodate. |
@jonbhanson I finally found a solution coming from this link : The solution is to go to project / android / app / src / main / res / values-night / styles.xml and to overwrite the <style name="LaunchTheme ... " section with the following code :
I now have the full screen during the splash as you can see below: |
@Nathan617 Same result on my Huawei, the trick is |
@Nathan617 @jonbhanson
|
@jonbhanson Maybe something to consider in a further update? :) |
@Nathan617 @LastMonopoly thanks for the detective work. I will push out an update that adds the |
@Nathan617 Thanks a lot for your effort, I will verify it later. |
…ion bar incorrectly still showing on Xiaomi devices. Fixes jonbhanson#517. Updated dependencies. (cherry picked from commit 916839b)
I also encountered this problem. I modified styles.xml but it still didn’t work. What is the configuration of your flutter_native_splash.yaml? Can you give me a reference? In addition to modifying styles.xml, is there any other processing required? |
Attention: If you open a bug report without sufficient details, it will be closed. Is your question
related to Android 12? Please check the notes on Android 12 first (https://pub.dev/packages/flutter_native_splash#android-12-support).
The status bar / notification bar still shows up when the splash screen shows. I need to have my splash screen full screen. Works on iOs but I keep having the status/notification bar in black on top during splash screen on Android 12.
A clear and concise description of what the bug is.
Android Studio : 2022.1
Xcode : 14.2
Flutter : 3.7.3
flutter_native_splash : ^2.2.17
Paste the flutter_native_splash section of your yaml config.
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
pinput: ^2.2.23
flutter_secure_storage: ^8.0.0
get_it: ^7.2.0
get: ^4.6.5
cached_network_image: ^3.2.3
flutter_svg: ^2.0.1
flutter_easyloading: ^3.0.5
url_launcher: ^6.1.9
http: ^0.13.5
internet_connection_checker: ^1.0.0+1
flutter_native_splash: ^2.2.17
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^2.0.0
Run commands to generate splash screen
1) flutter clean
2) flutter pub get
3) flutter pub run flutter_native_splash:create
flutter_native_splash:
image: assets/images/logo_transparent_white three_quarter_size.png
color: "EA4450"
fullscreen: true
Device (please complete the following information):
To Reproduce
Steps to reproduce the behavior, using the example app:
I run it on my physical Huawei Mate 20 Pro phone.
Additional context
Works on iOS as it is full screen. Not Android 12.
The text was updated successfully, but these errors were encountered: