diff --git a/docs/plans/PROGRESS.md b/docs/plans/PROGRESS.md index 14b684c..a7d3961 100644 --- a/docs/plans/PROGRESS.md +++ b/docs/plans/PROGRESS.md @@ -1162,3 +1162,9 @@ $ flutter test - `AppRootTab` 新增 `selectedAssetPath`,首页选中使用 `film_reel_filled.png`,未选中使用描边版。 - 共享导航保持 `ColorFiltered(srcIn)` 与 26×26,缺图按选中态回退实心/描边胶片图标。 - 推荐、追剧、我的不变;测试断言同步,按当前流程未执行 analyze/test。 + +## 2026-10-22 底部导航图标与文字加大 + +- 公共 token 调整为图标 30、文字 13、图标文字间距 5、内容高度 62。 +- 图片首页图标同步使用 30×30;SafeArea 仍在内容区外独立追加,四等分布局不变。 +- 尺寸测试断言同步,按当前流程未执行 analyze/test。 diff --git a/lib/core/theme/app_dimens.dart b/lib/core/theme/app_dimens.dart index 27c13c6..f0ba1fe 100644 --- a/lib/core/theme/app_dimens.dart +++ b/lib/core/theme/app_dimens.dart @@ -36,8 +36,8 @@ abstract final class AppDimens { static const double previewCardTitle = 13; static const double previewSectionTitle = 14; static const double chipFont = 10; - static const double navLabel = 11; - static const double navLabelGap = 4; + static const double navLabel = 13; + static const double navLabelGap = 5; static const double buttonHeight = 48; static const double primaryButtonHeight = 52; @@ -48,8 +48,8 @@ abstract final class AppDimens { static const double tapTarget = 44; static const double contentHeaderHeight = 46; - static const double navHeight = 56; - static const double navIcon = 26; + static const double navHeight = 62; + static const double navIcon = 30; static const double progressHeight = 3; static const double progressRadius = 2; static const double progressLineHeight = 3; diff --git a/test/home/app_bottom_nav_test.dart b/test/home/app_bottom_nav_test.dart index 289d568..c457535 100644 --- a/test/home/app_bottom_nav_test.dart +++ b/test/home/app_bottom_nav_test.dart @@ -103,7 +103,7 @@ void main() { expect(selectedIcon.color, AppColors.navSelected); expect( tester.getSize(find.byIcon(Icons.movie_rounded)), - const Size(26, 26), + const Size.square(AppDimens.navIcon), ); expect( tester.getTopLeft(find.text('Home')).dy - diff --git a/test/theme/app_dimens_test.dart b/test/theme/app_dimens_test.dart index 8a8cbfb..df8c7a6 100644 --- a/test/theme/app_dimens_test.dart +++ b/test/theme/app_dimens_test.dart @@ -18,13 +18,13 @@ void main() { expect(AppDimens.listTitle, 15); expect(AppDimens.sectionTitle, 16); expect(AppDimens.pageTitle, 20); - expect(AppDimens.navLabel, 11); - expect(AppDimens.navLabelGap, 4); - expect(AppDimens.navIcon, 26); + expect(AppDimens.navLabel, 13); + expect(AppDimens.navLabelGap, 5); + expect(AppDimens.navIcon, 30); expect(AppDimens.buttonHeight, 48); expect(AppDimens.primaryButtonHeight, 52); expect(AppDimens.tapTarget, 44); - expect(AppDimens.navHeight, 56); + expect(AppDimens.navHeight, 62); expect(AppDimens.progressHeight, 3); }); }