docs(plans): 记录 K86.22 评论输入面板安全区修复

This commit is contained in:
Zhou Weidong committed 2026-10-21 15:01:58 +08:00
1 parent e6b5b904fc
commit c7e5de5f99
2 files changed
+68

No files matched your search

+23
View File
@@ -23569,3 +23569,26 @@ $ flutter test --no-pub
```
解读:ReelShort 静态检查零告警,513 条测试全部通过。未安装真机,等待用户验收。
## 2026-10-21 ReelShort:K86.22 评论输入浮层去除底部安全区位移
- 功能分支:`fix/composer-safearea`,从 ReelShort develop `036bd29` 创建。
- 功能提交:`3fbfa9a fix(player): 去除评论输入面板安全区导致的收键盘位移`。
- develop 合并提交:`d39d8d4 merge: 合并 K86.22 评论输入面板安全区修复`,已推送 `036bd29..d39d8d4`。
- 根因是输入面板 Material 内的 `SafeArea(top: false)` 会消费底部手势条 padding:键盘弹起时 `MediaQuery.padding.bottom` 为 0,收起后恢复 48px,SafeArea 因此把输入区额外顶高 48px。
- 面板改为 `SafeArea(top: false, bottom: false)`,不再依赖 `MediaQuery.padding.bottom`;输入区位置仅由 `Padding(bottom: _pinnedKeyboardInset)` 和固定内容内边距 12 决定。
- 保持白底 Material 铺到屏幕底部、顶部圆角 20、紧凑输入区、透明外部点击和发表成功关闭规则。
- 新增测试模拟键盘弹起 `viewInsets.bottom=180/padding.bottom=0`,收起后 `viewInsets.bottom=0/padding.bottom=48`。旧实现红灯为 expected top `560.0`、actual `512.0`,上移 48px;修复后输入框 top、bottom、height 偏移均小于 0.1。
门禁原始输出:
```text
$ dart analyze lib test
Analyzing lib, test...
No issues found!
$ flutter test --no-pub
00:49 +514: All tests passed!
```
解读:ReelShort 静态检查零告警,514 条测试全部通过。未安装真机,等待用户验收。