Files
FruitServer/docs/plans/INBOX.md
T

60 lines
2.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# INBOX
## [已处理] K64-A 原生开屏改为品牌启动图
### 背景
自定义 Flutter 动画开屏页观感不佳(元素多、文字不够亮)。按产品要求改为**只保留原生启动屏**:
- 深暖底 `#1F1B16` 上一枚果篮图标 + 明亮奶油白 `FruitShorts` + 橙色「水果短剧」
- 原生启动屏由 `flutter_native_splash` 生成,Android 12+ 用 `android12splash`,旧版本用 `splash`,
iOS 用 `LaunchImage` / `LaunchBackground`
- 删除自定义开屏页,首页首帧加载态改为同款深底 + 主题色转圈,避免深→浅闪白
已完成本机实现与真机验证(Android 16 录屏逐帧确认:开屏 → 加载 → feed 全程深色,无白闪)。
门禁已由 Trae 复跑:`dart analyze lib test` 零告警、`flutter test` 473 条全过、`flutter build apk --debug` 成功。
### 工作区改动(ReelShort,develop,未提交)
新增:
- `assets/icon/splash_logo.png`
- `assets/icon/splash_logo_android12.png`
- `android/app/src/main/res/drawable/background.png`
- `android/app/src/main/res/drawable-v21/background.png`
- `android/app/src/main/res/drawable-{mdpi,hdpi,xhdpi,xxhdpi,xxxhdpi}/splash.png`
- `android/app/src/main/res/drawable-{mdpi,hdpi,xhdpi,xxhdpi,xxxhdpi}/android12splash.png`
- `android/app/src/main/res/drawable-night-{mdpi,hdpi,xhdpi,xxhdpi,xxxhdpi}/android12splash.png`
- `ios/Runner/Assets.xcassets/LaunchImage.imageset/`
- `ios/Runner/Assets.xcassets/LaunchBackground.imageset/`
修改:
- `pubspec.yaml`(移除 `splash_mark.png` 资产声明,`flutter_native_splash` 配置改为深底 + 新图)
- `lib/core/theme/app_colors.dart`(新增 `splashInk = #1F1B16`)
- `lib/pages/home/home_view.dart`(删除 `SplashPage` 分支;加载态改深底 + 浅色状态栏)
- `android/app/src/main/res/drawable/launch_background.xml`
- `android/app/src/main/res/drawable-v21/launch_background.xml`
- `android/app/src/main/res/values/colors.xml`
- `android/app/src/main/res/values-v31/styles.xml`
- `android/app/src/main/res/values-night-v31/styles.xml`
- `ios/Runner/Base.lproj/LaunchScreen.storyboard`
删除:
- `assets/icon/splash_mark.png`
- `lib/pages/splash/splash_page.dart`
- `test/splash/splash_gate_test.dart`
### 任务
1. 从 `develop` 拉分支 `feat/native-splash-logo`(工作区改动直接带入)。
2. 只提交上述文件;**禁止 `git add -A`**。
3. **不要提交** `pubspec.lock`、`android/app/src/main/AndroidManifest.xml`、`ios/Runner/Info.plist`
(这三处已还原为 develop 原样,禁止再改动)。
4. 提交:`feat(splash): 原生开屏改为品牌启动图`,作者 `Zhou Weidong <502333560@qq.com>`。
5. 门禁:`dart analyze lib test`、`flutter test`、`flutter build apk --debug` 全过。
6. `--no-ff` 合并回 `develop` 并 push。
7. `FruitServer/docs/plans/PROGRESS.md` 追加 K64-A 留痕(分支、commit、门禁原始输出)。
### 约束
- 全程中文;不改其它功能代码;完成后停住,等待验收。