merge: 更换底部首页导航图标

This commit is contained in:
Zhou Weidong committed 2026-10-22 19:22:09 +08:00
commit c24518c1a4
3 files changed
+11 -5

No files matched your search

+6
View File
@@ -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。
+2 -2
View File
@@ -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,
+3 -3
View File
@@ -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<Icon>(
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,
);