Files
FruitServer/docs/plans/INBOX.md
T

2.0 KiB
Raw Blame History

[已处理] 2026-10-20 | K52-A 去掉原生静态开屏,直接进入带动画的开屏页(仅 App 端)

用户指令(2026-10-20,原文):

「原生的开屏也就不要了 直接显示带动画效果的开屏页即可」

口径(只改 Flutter / 原生启动资源,不动后端、不改接口)

  1. Android 原生开屏只保留纯色底:
    • android/app/src/main/res/drawable/launch_background.xml、drawable-v21/launch_background.xml、drawable-v31/launch_background.xml 全部改为仅 @color/splash_background(去掉 bitmap / splash_icon 图层);
    • values-v31/styles.xml 与 values-night-v31/styles.xml:windowSplashScreenAnimatedIcon 改为透明 drawable(新增 drawable/splash_transparent.xml,<shape><solid android:color="@android:color/transparent"/></shape>),移除 windowSplashScreenIconBackgroundColor;
    • splash_background 保持 #100C0A,与 Flutter 动画开屏背景一致,避免色差。
  2. iOS 原生开屏去掉静态图:
    • ios/Runner/Base.lproj/LaunchScreen.storyboard 删除 LaunchImage imageView 及其 constraints,仅保留深色背景(现 rgb 0.0627/0.0470/0.0392)。
  3. Flutter 动画开屏页保持 K50-A 的动画(logo 放大淡入 → FruitShorts → 水果短剧 → 转圈),作为用户看到的第一个画面;原生只做纯色过渡。
  4. 不再引用 drawable-*/splash_icon.png 与 iOS LaunchImage(文件可保留,但不得出现在启动界面)。

测试/门禁

  • 静态检查:三个 launch_background.xml 不再包含 bitmap;v31 styles 不含 windowSplashScreenIconBackgroundColor;LaunchScreen.storyboard 不含 LaunchImage;
  • dart analyze lib test 零告警 + flutter test 全过 + flutter build apk --debug。

流程:从 develop 拉 feature/flutter-k52-native-splash-clean;作者 Zhou Weidong <502333560@qq.com>;--no-ff 合回 develop 并 push;PROGRESS 留痕;真机验收由用户执行(冷启动应看到纯深色 → Flutter 动画开屏)。