Advertisements
error codeHello I am trying to change my splash screen in flutter on vscode using the native way but I keep running to an error and I tried every single solution on the Internet but its not getting resolved I hope someone can help me.
xml code
>Solution :
Put ur image is drawable. use it here instead
- main/android/app/src/main/res/values-night/styles.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">@drawable/logo</item>
</style>>
- main/android/app/src/main/res/values/styles.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">@drawable/logo</item>
</style>