feat: implement a new splash screen with custom branding, assets, and routing for both Android and iOS.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
8
android/app/src/main/res/drawable/splash_gradient.xml
Normal file
8
android/app/src/main/res/drawable/splash_gradient.xml
Normal 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>
|
||||
BIN
android/app/src/main/res/drawable/splash_house.png
Normal file
BIN
android/app/src/main/res/drawable/splash_house.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 74 KiB |
BIN
android/app/src/main/res/drawable/splash_logo.png
Normal file
BIN
android/app/src/main/res/drawable/splash_logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user