title: Flutter splash screen not working with launch_background.xml
body: <p>I can't seem to show my own splash screen, every time I launch the app the default, blank splash screen is shown even though I've set up everything in <code>launch_background.xml</code> and the other files in <code>res</code>. I've also set up all the relevant icons in <code>drawable</code> and <code>mipmap</code>.</p>
  <p>launch_background.xml:</p>
  <pre><code>&lt;!-- Modify this file to customize your launch splash screen --&gt;
  &lt;layer-list xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;
      &lt;item&gt;
          &lt;color android:color=&quot;@color/splash&quot; /&gt;
      &lt;/item&gt;
  
      &lt;!-- You can insert your own image assets here --&gt;
      &lt;item&gt;
          &lt;bitmap
              android:gravity=&quot;center&quot;
              android:src=&quot;@drawable/splash_icon&quot; /&gt;
      &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>
  <p>styles.xml:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;resources&gt;
      &lt;!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off --&gt;
      &lt;style name=&quot;LaunchTheme&quot; parent=&quot;@android:style/Theme.Light.NoTitleBar&quot;&gt;
          &lt;!-- Show a splash screen on the activity. Automatically removed when
               Flutter draws its first frame --&gt;
          &lt;item name=&quot;android:windowBackground&quot;&gt;@drawable/launch_background&lt;/item&gt;
      &lt;/style&gt;
      &lt;!-- Theme applied to the Android Window as soon as the process has started.
           This theme determines the color of the Android Window while your
           Flutter UI initializes, as well as behind your Flutter UI while its
           running.
           
           This Theme is only used starting with V2 of Flutter's Android embedding. --&gt;
      &lt;style name=&quot;NormalTheme&quot; parent=&quot;@android:style/Theme.Light.NoTitleBar&quot;&gt;
          &lt;item name=&quot;android:windowBackground&quot;&gt;?android:colorBackground&lt;/item&gt;
      &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  <p>colors.xml:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;resources&gt;
      &lt;color name=&quot;ic_launcher_background&quot;&gt;#191919&lt;/color&gt;
      &lt;color name=&quot;splash&quot;&gt;#191919&lt;/color&gt;
  &lt;/resources&gt;
  </code></pre>
  <p><code>&lt;activity&gt;</code> tag in AndroidManifest.xml:</p>
  <pre><code>&lt;activity
              android:name=&quot;.MainActivity&quot;
              android:launchMode=&quot;singleTop&quot;
              android:theme=&quot;@style/LaunchTheme&quot;
              android:configChanges=&quot;orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode&quot;
              android:hardwareAccelerated=&quot;true&quot;
              android:windowSoftInputMode=&quot;adjustResize&quot;&gt;
              &lt;!-- Specifies an Android theme to apply to this Activity as soon as
                   the Android process has started. This theme is visible to the user
                   while the Flutter UI initializes. After that, this theme continues
                   to determine the Window background behind the Flutter UI. --&gt;
              &lt;meta-data
                android:name=&quot;io.flutter.embedding.android.NormalTheme&quot;
                android:resource=&quot;@style/LaunchTheme&quot;
                /&gt;
              &lt;!-- Displays an Android View that continues showing the launch screen
                   Drawable until Flutter paints its first frame, then this splash
                   screen fades out. A splash screen is useful to avoid any visual
                   gap between the end of Android's launch screen and the painting of
                   Flutter's first frame. --&gt;
              &lt;meta-data
                android:name=&quot;io.flutter.embedding.android.SplashScreenDrawable&quot;
                android:resource=&quot;@drawable/launch_background&quot;
                /&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;android.intent.action.MAIN&quot;/&gt;
                  &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot;/&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  </code></pre>
  <p>The splash screen should show an image and a different background color but instead it just shows the default blank white screen. I'm not using a custom splash screen for this. I just want at least the colors to change but even that is not working.</p>