style(home): 放大底部导航图标与文字
This commit is contained in:
1 parent
5860302ce7
commit
fd2b0dbf23
4 files changed
+15
-9
No files matched your search
@@ -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。
|
||||
@@ -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;
|
||||
|
||||
@@ -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 -
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user