feat: split settings into category pages and add an about page

- the settings screen is now an index: 通用 → 聊天, 外观 → 主题 / 宠物,
  帮助与关于 → 关于; each row opens its own page, the controls moved
  there unchanged
- 关于 shows the app version, the server's OpenCode (/api/info) and
  OpenChamber (/api/version) versions with a refresh, and the open-source
  licenses, listed per package with their full text on tap
- the app version is read from the platform at startup
  (package_info_plus), so pubspec.yaml is the only place it is written;
  the pairing/relay handshake now sends it too instead of a constant that
  had drifted
This commit is contained in:
blumia committed 2026-11-25 12:39:48 +08:00
1 parent 00564fe94b
commit 2185054aab
11 files changed
+736 -192

No files matched your search

+13
View File
@@ -5,6 +5,19 @@
---
## 0.4.17 设置按分组拆页,新增「关于」(分支 `flutter`)
| 项 | 结果 |
| --- | --- |
| 分组 | 设置页改成索引,对齐 dsh-Go 的组织方式:【通用】聊天;【外观】主题、宠物;【帮助与关于】关于。每行带图标、一句说明与右箭头,点开是独立子页;原来的全部控件搬进各自子页,索引里只留入口 |
| 版本 | 应用版本改为运行时从平台读取(`package_info_plus` 的 `version`;不含 Android build 号,因为 ABI 拆分会给它加一位、四个 APK 各不相同),`pubspec.yaml` 成为唯一出处;配对/relay 握手里的 `appVersion` 也用它,不再有写死的常量(之前还停在 0.4.14) |
| 关于 | 新增「关于」子页:应用图标与名称、版本号、开源许可入口、服务端 OpenCode 版本(`/api/info`)与 OpenChamber 版本(`/api/version`),右上角可重新获取;开源许可按包列出,点开看完整许可证文本(自绘中文页,不用英文的 `LicensePage`);未连接或取不到时明确写「未连接」「未获取到」 |
| 测试 | `test/settings_screen_test.dart` 重写:索引分组、聊天/主题/宠物/关于四个子页、版本与许可入口;87 项全过 |
| 验证 | 模拟器:设置索引三个分组四行;主题页模式/主题色可用;宠物页显示已导入的「Deepy 小鲸鱼」、启用开关与大小;关于页版本「0.4.17」、OpenCode「2.4.0」、OpenChamber「2.8.0」(取自当前服务器),许可页按包列出、点开显示完整许可证文本 |
| 版本 | **0.4.17(code 417)** |
---
## 0.4.16 回到前台后重新对账运行状态(分支 `flutter`)
| 项 | 结果 |