diff --git a/docs/plans/PROGRESS.md b/docs/plans/PROGRESS.md index 62c1c3e..12f49a4 100644 --- a/docs/plans/PROGRESS.md +++ b/docs/plans/PROGRESS.md @@ -1144,3 +1144,9 @@ $ flutter test - 三横线热区由 44 宽改为 26×26,消除 44 宽居中盒造成的视觉右边距偏移。 - 标签滚动区与按钮间距改为 6,按钮右边缘固定对齐页面 14 边距。 - 补充按钮尺寸与屏幕右边距断言;按当前流程未执行 analyze/test。 + +## 2026-10-22 首页导航图标调整 + +- `AppRootTab.home` 未选中改为 `theaters_outlined`,选中改为 `theaters`。 +- 其余三个根导航图标、26 尺寸及白/灰颜色规则保持不变;测试断言同步。 +- 按当前流程未执行 analyze/test。 diff --git a/lib/core/widgets/app_root_tab.dart b/lib/core/widgets/app_root_tab.dart index 798b2f7..dec8033 100644 --- a/lib/core/widgets/app_root_tab.dart +++ b/lib/core/widgets/app_root_tab.dart @@ -17,14 +17,14 @@ extension AppRootTabUi on AppRootTab { }; IconData get icon => switch (this) { - AppRootTab.home => Icons.home_outlined, + AppRootTab.home => Icons.theaters_outlined, AppRootTab.recommend => Icons.smart_display_outlined, AppRootTab.following => Icons.bookmark_border_rounded, AppRootTab.mine => Icons.person_outline_rounded, }; IconData get selectedIcon => switch (this) { - AppRootTab.home => Icons.home_rounded, + AppRootTab.home => Icons.theaters, AppRootTab.recommend => Icons.smart_display_rounded, AppRootTab.following => Icons.bookmark_rounded, AppRootTab.mine => Icons.person_rounded, diff --git a/test/home/home_nav_ui_test.dart b/test/home/home_nav_ui_test.dart index b1d78ad..e831fc3 100644 --- a/test/home/home_nav_ui_test.dart +++ b/test/home/home_nav_ui_test.dart @@ -191,7 +191,7 @@ void main() { expect( find.descendant( of: find.byKey(const Key('tab-home')), - matching: find.byIcon(Icons.home_rounded), + matching: find.byIcon(Icons.theaters), ), findsOneWidget, ); @@ -221,7 +221,7 @@ void main() { .widget( find.descendant( of: find.byKey(const Key('tab-home')), - matching: find.byIcon(Icons.home_rounded), + matching: find.byIcon(Icons.theaters), ), ) .color, @@ -271,7 +271,7 @@ void main() { expect( find.descendant( of: find.byKey(const Key('tab-home')), - matching: find.byIcon(Icons.home_outlined), + matching: find.byIcon(Icons.theaters_outlined), ), findsOneWidget, );