From 2a06190cfef921ecdffca23461b6d660333b9b12 Mon Sep 17 00:00:00 2001 From: Zhou Weidong <502333560@qq.com> Date: Sat, 17 Oct 2026 22:29:26 +0800 Subject: [PATCH] =?UTF-8?q?docs(plans):=20=E4=B8=8B=E5=8F=91=20K11=20?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=B8=89=E5=88=97=E7=BD=91=E6=A0=BC=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/plans/INBOX.md | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/docs/plans/INBOX.md b/docs/plans/INBOX.md index 1c6e002..4d6b6f7 100644 --- a/docs/plans/INBOX.md +++ b/docs/plans/INBOX.md @@ -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)**:「做空列表的占位图,所有的列表,要求简单大方、符合审美」。