Skip to content

Commit a1747aa

Browse files
committed
fix: fixed splash screen on huawei
Fixed white color around app icon on splash screen on huawei by adding icon_background_color property
1 parent 289f672 commit a1747aa

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

android/app/src/main/res/values-night-v31/styles.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
88
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
99
<item name="android:windowSplashScreenBackground">#123752</item>
10+
<item name="android:windowSplashScreenIconBackgroundColor">#123752</item>
1011
</style>
1112
<!-- Theme applied to the Android Window as soon as the process has started.
1213
This theme determines the color of the Android Window while your

android/app/src/main/res/values-v31/styles.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
88
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
99
<item name="android:windowSplashScreenBackground">#123752</item>
10+
<item name="android:windowSplashScreenIconBackgroundColor">#123752</item>
1011
</style>
1112
<!-- Theme applied to the Android Window as soon as the process has started.
1213
This theme determines the color of the Android Window while your

tool/configs/flutter_native_splash.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ flutter_native_splash:
33
image: "tool/assets/native_splash/image.png"
44
android_12:
55
color: "#123752"
6+
icon_background_color: "#123752"

0 commit comments

Comments
 (0)