Skip to content

Commit d4da609

Browse files
committed
feat: rewrite splash screen and bump version to 0.2.123+137
1 parent 6eba971 commit d4da609

13 files changed

Lines changed: 40 additions & 9 deletions

File tree

800 KB
Loading
800 KB
Loading
800 KB
Loading
800 KB
Loading

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
55
<item name="android:forceDarkAllowed">false</item>
66
<item name="android:windowFullscreen">false</item>
7+
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
78
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
89
<item name="android:windowSplashScreenBackground">#1A1612</item>
910
<item name="android:windowSplashScreenIconBackgroundColor">#1A1612</item>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<item name="android:windowBackground">@drawable/launch_background</item>
88
<item name="android:forceDarkAllowed">false</item>
99
<item name="android:windowFullscreen">false</item>
10+
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
1011
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
1112
</style>
1213
<!-- Theme applied to the Android Window as soon as the process has started.

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
55
<item name="android:forceDarkAllowed">false</item>
66
<item name="android:windowFullscreen">false</item>
7+
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
78
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
8-
<item name="android:windowSplashScreenBackground">#F4EFE3</item>
9+
<item name="android:windowSplashScreenBackground">#1A1612</item>
910
<item name="android:windowSplashScreenIconBackgroundColor">#1A1612</item>
1011
</style>
1112
<!-- Theme applied to the Android Window as soon as the process has started.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<item name="android:windowBackground">@drawable/launch_background</item>
88
<item name="android:forceDarkAllowed">false</item>
99
<item name="android:windowFullscreen">false</item>
10+
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
1011
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
1112
</style>
1213
<!-- Theme applied to the Android Window as soon as the process has started.

assets/splash_landscape.png

800 KB
Loading
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# [COMPLETED] 重新繪製開啟 App 的 Splash 啟動畫面
2+
3+
本計畫旨在更新「夜讀」的開啟啟動畫面(Splash Screen)。我們使用了一張全新繪製的夢幻夜空風景大圖,並將原本的魔法書、城堡、發光樹與彎月等經典品牌元素融合其中,在 Light 與 Dark 模式下均呈現一致的精美視覺體驗。
4+
5+
## 變更項目
6+
7+
### 1. 資產複製 (Assets)
8+
- **[NEW]** 複製生成的 `splash_landscape_1783065815113.png` 至專案目錄:`assets/splash_landscape.png`
9+
10+
### 2. 設定檔修改 (Config)
11+
- **[MODIFY]** `flutter_native_splash.yaml`
12+
- 移除原有的純色設定,改為指向 `background_image``background_image_dark` 為新生成的 `assets/splash_landscape.png`
13+
- 調整 Android 12+ 的 `color``color_dark` 設定,對齊新風景圖的深棕色調,以確保 Android 12 系統原生啟動圖的和諧度。
14+
15+
### 3. 原生資產生成 (Generation)
16+
- 執行 `dart run flutter_native_splash:create` 重新產生 Android 各解析度的 Splash 相關資源檔案(Drawable 等)。
17+
18+
### 4. 版本控制 (Release)
19+
-`pubspec.yaml` 版本號由 `0.2.122+136` 升級為 `0.2.123+137`
20+
21+
---
22+
23+
## 驗證結果
24+
25+
### 自動化測試與靜態分析
26+
- 在本機執行:
27+
- `flutter analyze` 確保專案語法與相依性正常。 (No issues found!)
28+
- `flutter test` 確保沒有任何測試因 Splash 變更而受影響。 (661 tests passed!)

0 commit comments

Comments
 (0)