title: adding splash screen in flutter with custom color and img but it is still showing blank white screen on app startup
body: <p>I am trying to add a splash screen in flutter instead of a blank white screen that shows on startup... I followed this <a href="https://www.youtube.com/watch?v=j5yH6_kzZFQ" rel="nofollow noreferrer">youtube tutorial video</a>. But unfortunately, this method is not working for me.</p>
  <p>I added color and image location in android/app/src/main/res/drwable</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &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 android:drawable=&quot;@color/red&quot; /&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/randa&quot; /&gt;
      &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>
  <p>and then I added color value in android/app/src/main/values/color.xml</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;resources&gt;
      &lt;color name=&quot;red&quot;&gt;#FF0000&lt;/color&gt;
  &lt;/resources&gt;
  </code></pre>
  <p>Here is a screenshot -
  <a href="https://i.stack.imgur.com/LrPSR.png" rel="nofollow noreferrer">launch_background xml</a> and
  <a href="https://i.stack.imgur.com/aktDY.png" rel="nofollow noreferrer">color xml</a></p>
  <p>As I am new in flutter development and I don't have much knowledge about XML.. any help will greatly be appreciated</p>
  <p>Note- I tried every answer from google but nothing seems to be working for me. :-(</p>