Search code examples
flutterscreensplash-screen

Flutter splash screen not showing


I'am trying to add a splash screen on my application , i'am pretty sure i made all the steps correctly

I've added my picture on launch_background.xml

 <?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@android:color/black"/>
    <item>
        <bitmap
            android:gravity="center"
            android:src="@drawable/1-ZID-SplashScreen" />
    </item>
</layer-list>

And i have added the path of the picture which is located on drawable folder on pubsec.yaml

flutter:
  assets:
    - assets/images/
    - assets/google_fonts/
    - android/app/src/main/res/drawable/
 

But still the splash screen stills white, help me resolve this please ^^

Thanks.


Solution

  • You can use flutter_native_splash it will help you achieve what you want