feat: implement a new splash screen with custom branding, assets, and routing for both Android and iOS.

This commit is contained in:
pradeepkumar
2026-03-10 22:46:48 +05:30
parent 5e2f42af2f
commit 792965f717
14 changed files with 142 additions and 16 deletions

View File

@@ -1,12 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="?android:colorBackground" />
<!-- Gradient background from #c4d9d4 (top) to #f0f5fc (bottom) -->
<item android:drawable="@drawable/splash_gradient" />
<!-- You can insert your own image assets here -->
<!-- <item>
<!-- House illustration centered -->
<item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
android:src="@drawable/splash_house" />
</item>
<!-- RE-Quest logo below center -->
<item
android:gravity="center_horizontal|bottom"
android:bottom="200dp">
<bitmap
android:gravity="center"
android:src="@drawable/splash_logo" />
</item>
</layer-list>

View File

@@ -1,12 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />
<!-- Gradient background from #c4d9d4 (top) to #f0f5fc (bottom) -->
<item android:drawable="@drawable/splash_gradient" />
<!-- You can insert your own image assets here -->
<!-- <item>
<!-- House illustration centered -->
<item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
android:src="@drawable/splash_house" />
</item>
<!-- RE-Quest logo below center -->
<item
android:gravity="center_horizontal|bottom"
android:bottom="200dp">
<bitmap
android:gravity="center"
android:src="@drawable/splash_logo" />
</item>
</layer-list>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:startColor="#c4d9d4"
android:endColor="#f0f5fc"
android:angle="270" />
</shape>

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>