How to do splash in flutter , i just wanted a background image only for splash screen

456 Views Asked by At

i just wanted to display a splash in flutter , but when i try to run the splash screen the default splash screen of flutter always comes first , how to disable the default splash in flutter , if i can't disable it then what's other solution, i need to display only backgroundImage in my splash screen how to do that in flutter , i have used flutter_native_splash package but it didn't work

i need to display only backgroundImage in my splash screen how to do that in flutter , i have used flutter_native_splash package but it didn't work

1

There are 1 best solutions below

0
On

Have you tried modifying the For AndroidManifest.xml file:

You can locate it in the android/app/src/main/AndroidManifest.xml file in your Flutter project.

Then just remove or comment out the following lines inside the tag: xml

> <meta-data
>     android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
>     android:value="true" />

For iOS (modify the Info.plist file):

You can locate the ios/Runner/Info.plist file in your Flutter project. Remove or comment out the following key-value pair:

<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>