Files
FruitServer/docs/plans/INBOX.md
T

45 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# INBOX
## [已处理] K78-A 底部导航图标与文字放大
### 需求
底部导航(首页/剧场/创作/我的,浅色与首页 feed 深色共用 `AppBottomNav`)的图标和文字偏小,
整体放大一档。
### 现状
`lib/core/theme/app_dimens.dart`:
- `navIcon = 20`
- `navLabel = 10`
- `navHeight = 64`
`AppBottomNav` 里图标与文字间距 `SizedBox(height: 2)`。
### 改动
1. `lib/core/theme/app_dimens.dart`
- `navIcon`:`20` → `24`
- `navLabel`:`10` → `12`
- `navHeight`:`64` → `68`
2. `lib/core/widgets/app_bottom_nav.dart`
- 图标与文字间距 `2` → `3`,其余布局不变(四等分、选中态主题色、深色/浅色两种底不变)
3. `test/theme/app_dimens_test.dart`
- 断言同步为 `navLabel = 12`、`navHeight = 68`(如断言了 `navIcon` 一并更新)
### 验收
- 空间检查:`navHeight 68` 下 24 图标 + 3 间距 + 12 文字垂直居中不溢出
- 门禁:`dart analyze lib test` 零告警、`flutter test` 全过、`flutter build apk --debug` 成功
### Git
- 从 `develop` 拉 `feat/bottom-nav-larger`。
- 提交:`feat(nav): 底部导航图标与文字放大`,作者 `Zhou Weidong <502333560@qq.com>`。
- `--no-ff` 合回 `develop` 并 push;`FruitServer/docs/plans/PROGRESS.md` 追加 K78-A 留痕。
### 约束
- 全程中文;禁止 `git add -A`;只动导航尺寸与相关断言;完成后停住等待验收。