feat(following): 新增追剧三栏与双列网格

This commit is contained in:
Zhou Weidong committed 2026-10-22 17:32:09 +08:00
1 parent 73380ee090
commit 97e3f4fc47
15 files changed
+1001 -12

No files matched your search

+37
View File
@@ -963,3 +963,40 @@ $ flutter test
解读:推荐三分区、横滑卡片、四行筛选、三列网格、tab 状态保留、搜索、
卡片播放和内嵌榜单均有测试覆盖;所有生效文件低于 500 行。
`pubspec.lock` 未提交,未操作真机。
## 2026-10-22 追剧页三 tab 与双列网格
- 分支:`feature/following-tabs-grid`
- 基线:`develop` / `origin/develop` = `73380ee`
### 页面与数据
- 根导航追剧槽位改为内嵌 `FollowingPage`,不再 push 收藏路由,也不叠加
第二层底部导航。
- 页面提供追剧 / 播放历史 / 预约三个子 tab,使用 `IndexedStack` 保留各自
滚动位置;切换 tab 会退出编辑态。
- 追剧复用 `FavoriteController`,显示“第 N 集 / 共 M 集”,支持下拉刷新、
触底分页、加载/错误/无更多状态。
- 播放历史复用 `WatchRecordsController`,优先使用分页接口的
`dramaTitle/dramaCover/episodeNumber`,仅在标题缺失时补取详情;卡片展示
已看集数与可用进度条,同样支持刷新和分页。
- 双列网格使用共享卡片:3:4 封面、播放量胶囊、两行标题、副信息与编辑态
减号。删除前二次确认,最后一条移除后自动退出编辑态。
- 预约没有独立分页数据源,本轮保留真实空态;未登录沿用 `AuthGatePanel`。
### 门禁命令与原始输出
```text
$ flutter analyze
Analyzing reelshort-bottom-nav...
No issues found! (ran in 1.9s)
```
```text
$ flutter test
01:12 +643: All tests passed!
```
解读:三 tab、双列网格、后端历史元数据直出、编辑删除确认、最后一条自动
退出编辑、未登录与空态均有测试覆盖;`following_page.dart` 低于 500 行。
`pubspec.lock` 未提交,未操作真机。