Skip to content
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

Android 14 shows a black screen between the native splash and the first flutter widget #735

Open
mako-yolo opened this issue Sep 25, 2024 · 3 comments

Comments

@mako-yolo
Copy link

mako-yolo commented Sep 25, 2024

Describe the bug
Android 14 shows a black screen after the native Android splash screen and before showing the first Flutter widget.
All lower Android versions work well.
For Android 12 everything was configured corresponding to the official library documentation and the accompanying links of the README section. Only Android 14 has this issue.

Library version: 2.4.1

Device/OS: Android 34

@mesaglam
Copy link

mesaglam commented Oct 2, 2024

Did you use

WidgetsBinding widgetsBinding = WidgetsFlutterBinding.ensureInitialized(); FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);

in main section?

@mako-yolo
Copy link
Author

Yes, I do, and i hide it in the initState method later. It works as expected for v<34

@marvelaman
Copy link

can you provide code from main activity native code?
I followed steps from official docs and it helped to fix my issue:
https://docs.flutter.dev/platform-integration/android/splash-screen
https://docs.flutter.dev/release/breaking-changes/splash-screen-migration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants