From 97e2db1b7bbb5ee841820c8e04f24a9a14bc95dc Mon Sep 17 00:00:00 2001 From: Zhou Weidong <502333560@qq.com> Date: Thu, 22 Oct 2026 19:22:01 +0800 Subject: [PATCH] =?UTF-8?q?feat(home):=20=E6=9B=B4=E6=8D=A2=E5=BA=95?= =?UTF-8?q?=E9=83=A8=E9=A6=96=E9=A1=B5=E5=AF=BC=E8=88=AA=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/plans/PROGRESS.md | 6 ++++++ lib/core/widgets/app_root_tab.dart | 4 ++-- test/home/home_nav_ui_test.dart | 6 +++--- 3 files changed, 11 insertions(+), 5 deletions(-) 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, );