flutter_native_splash icon indicating copy to clipboard operation
flutter_native_splash copied to clipboard

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

Open mako-yolo opened this issue 1 year ago • 3 comments

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

mako-yolo avatar Sep 25 '24 11:09 mako-yolo

Did you use

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

in main section?

mesaglam avatar Oct 02 '24 10:10 mesaglam

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

mako-yolo avatar Oct 02 '24 10:10 mako-yolo

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

marvelaman avatar Oct 17 '24 12:10 marvelaman

I tested this packages example with API34 but was not able to reproduce the problem. Can you advise how to reproduce the problem with the example or post a minimal example that reproduces the problem.

jonbhanson avatar Nov 18 '24 01:11 jonbhanson

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

jonbhanson avatar Nov 24 '24 14:11 jonbhanson