CW-478-Startup-splash-screen-is-white-in-all-themes.-Change-to-black-in-dark-themes (#1105)

* fix splash screen color * Update AndroidManifestBase.xml

Serhii committed Oct 3, 2023 at 22:05 UTC 6233422643e5aed57c90281afab060f012660eb2
3 files changed +9 -13
android/app/src/main/AndroidManifestBase.xml
-4
@@ -25,10 +25,6 @@
25 android:hardwareAccelerated="true"
26 android:windowSoftInputMode="adjustResize"
27 android:exported="true">
28 - <meta-data
29 - android:name="io.flutter.embedding.android.SplashScreenDrawable"
30 - android:resource="@drawable/launch_background"
31 - />
28 <intent-filter>
29 <action android:name="android.intent.action.MAIN"/>
30 <category android:name="android.intent.category.LAUNCHER"/>
android/app/src/main/res/drawable-night/launch_background.xml new
+6
@@ -0,0 +1,6 @@
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3 + <item>
4 + <color android:color="#000000"/> <!-- Dark background color -->
5 + </item>
6 +</layer-list>
\ No newline at end of file
android/app/src/main/res/drawable/launch_background.xml
+3 -9
@@ -1,12 +1,6 @@
1 <?xml version="1.0" encoding="utf-8"?>
2 -<!-- Modify this file to customize your launch splash screen -->
2 <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
4 - <item android:drawable="@android:color/white" />
5 -
6 - <!-- You can insert your own image assets here -->
7 - <!-- <item>
8 - <bitmap
9 - android:gravity="center"
10 - android:src="@mipmap/launch_image" />
11 - </item> -->
3 + <item>
4 + <color android:color="#FFFFFF"/> <!-- Light background color -->
5 + </item>
6 </layer-list>