docs(plans): 留痕 K30-D 评论输入框修正

This commit is contained in:
Zhou Weidong committed 2026-10-20 12:16:19 +08:00
1 parent fdf3f04b23
commit 8b176a6880
2 files changed
+51

No files matched your search

+21
View File
@@ -1,3 +1,24 @@
## [已处理] 2026-10-20 | K30-D 评论输入框尺寸与圆角修正(仅 App 端)
**用户指令(2026-10-20,原文)**:
> 「评论面板的输入框高度还是不对啊 很小 圆角太大」
**现状**:`lib/pages/player/widgets/drama_comments_sheet.dart` 中 `_composerHeight = 44`、`_composerRadius = 22`,且 `_composerDecoration` 使用 `isDense: true` 且 `contentPadding` 只有水平 14,视觉上被压扁;22 的圆角在 44 高度下等于胶囊,观感「圆角太大」。
**口径(只改 Flutter,不动后端、不改接口)**
1. 常量:`_composerHeight` 44 → **52**;`_composerRadius` 22 → **12**;`_sendButtonSize` 36 → **40**。
2. `_composerDecoration`:`contentPadding` 改为 `EdgeInsets.symmetric(horizontal: 16, vertical: 14)`;保留 `isDense: true` 以防溢出但不得再压扁;背景 `AppColors.commentInput`、无描边不变。
3. 发送按钮 40×40,与输入框垂直居中;图标 18 不变。
4. `TextField` 保持 `maxLines: 1`、`textAlignVertical: center`;输入文字与 hint 字号 14 不变。
5. 「回复 XX」提示条与输入框间距 6 不变;发送成功收起键盘行为不变。
6. 不新增后端字段、不改接口、不动评论列表样式。
**测试/门禁**:更新既有用例断言为输入框高度 52、发送按钮 40;`dart analyze lib test` 零告警 + `flutter test` 全过 + `flutter build apk --debug`。
**流程**:从 `develop` 拉 `fix/flutter-k30-comment-input`;作者 `Zhou Weidong <502333560@qq.com>`;`--no-ff` 合回 develop 并 push;PROGRESS 留痕;真机验收由用户执行。
---
## [已处理] 2026-10-20 | K30-C 评论面板视觉重做(仅 App 端)
**用户指令(2026-10-20,原文)**: