docs(plans): 下发 K11 首页三列网格任务

This commit is contained in:
Zhou Weidong authored and trae-solo-agent committed 2026-10-17 22:29:26 +08:00
1 parent aa54e03d52
commit 2a06190cfe
1 file changed
+38 -1
+38 -1
View File
@@ -20,7 +20,44 @@
---
## [已处理·待用户验收] 2026-10-17 | K10 统一空列表占位(EmptyState)
## [待处理] 2026-10-17 | K11 首页网格 3 列 + 分类首位「全部」
**用户指令(2026-10-17)**:「现在改首页,一行显示 3 个,而且我要的全部是显示在分类的第一个」。
> 在 K9 已实现的 2 列网格基础上做最小修订,不改接口、不改业务逻辑、不动后端。
### 〇、开工前必读
1. K9 计划与实现(`lib/pages/discover/widgets/home_drama_grid.dart`、`discover_view.dart`)
2. K5 主题 token
3. 本 INBOX 条目
### 一、PM 已勘察的现状(实测)
- `lib/pages/discover/widgets/home_drama_grid.dart`:`SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2, mainAxisSpacing: 16, crossAxisSpacing: 12, childAspectRatio: 2/3)`。
- `lib/pages/discover/discover_view.dart:273`:分类 chips 第一项为 `(code: CategoryController.allCode, label: l10n.forYou)`(文案「为你推荐」)。
- 其余(轮播、空态、三态)保持 K9/K10 现状。
### 二、本批范围
1. **网格改 3 列**:`crossAxisCount: 3`;`mainAxisSpacing: 14`、`crossAxisSpacing: 10`,`childAspectRatio` 保持 `2/3`;3 列下标题最多 2 行、分类 1 行,避免溢出。
2. **分类首位改「全部」**:chips 第一项仍使用 `allCode`,文案改为新增 l10n `all`(中文「全部」/ English「All」/ Bahasa Indonesia「Semua」);保留「热门 / 最新 / 服务端分类」顺序不变。
3. **同步测试**:
- 更新/新增断言 `crossAxisCount == 3`;
- 断言分类 chips 第一项文案为「全部」(按 locale);
- 既有 K9/K10 测试不得删改致绿。
4. **不做**:不改轮播、空态、三态、数据源、接口、其他页面;不新增分页。
### 三、门禁与 Git
- `dart analyze lib test` 零告警;`flutter test` 全过;`flutter build apk --debug` 通过(当前有 Android 真机 `flutter run` 在跑,构建前先确认没有并发构建占用 `build/`)。
- 从干净 `develop` 拉 `feature/flutter-k11-home-grid-3col`;完成后 `git merge --no-ff` 回 `develop` 并 push;不动 `main`。
- 先写 `FruitServer/docs/plans/2026-10-17-K11.md`;每步「叙述 + 命令 + 原始输出 + 解读」追加到 `PROGRESS.md`;完成后停住写回执。
- 提交作者与提交者统一 `Zhou Weidong <502333560@qq.com>`。
---
## [待处理] 2026-10-17 | K10 统一空列表占位(EmptyState)
**用户指令(2026-10-17)**:「做空列表的占位图,所有的列表,要求简单大方、符合审美」。