fix(home): 调整一级分类未选字号

This commit is contained in:
Zhou Weidong committed 2026-10-22 18:29:22 +08:00
1 parent da69a058b4
commit 325f7c1f5d
5 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -1111,7 +1111,7 @@ $ flutter test
## 2026-10-22 首页布局对齐修正 ## 2026-10-22 首页布局对齐修正
- 一级分类页内切换 6 个列表,未选 16/w400、选中 20/w700,无下划线;二级 chips 高 26、字 15、间距 14,仅精选显示。 - 一级分类页内切换 6 个列表,未选 18/w400 `#B0B0B0`、选中 20/w700 白字,无下划线;二级 chips 仅精选显示。
- 四类短剧卡片移除底板/描边,封面统一 8 圆角,网格行距 10、封底到标题 6;热剧/新剧/漫剧角标移至右上角异形丝带。 - 四类短剧卡片移除底板/描边,封面统一 8 圆角,网格行距 10、封底到标题 6;热剧/新剧/漫剧角标移至右上角异形丝带。
- 标题下方恢复左对齐题材文字,使用 `|` 分隔、灰色小字,与封面状态角标保持独立。 - 标题下方恢复左对齐题材文字,使用 `|` 分隔、灰色小字,与封面状态角标保持独立。
- 首页搜索栏到一级、一级到二级、二级到网格间距为 8/8/10;非精选 tab 直接以 10 衔接网格。 - 首页搜索栏到一级、一级到二级、二级到网格间距为 8/8/10;非精选 tab 直接以 10 衔接网格。
+1
View File
@@ -80,6 +80,7 @@ abstract final class AppColors {
static const textPrimary = Color(0xFFFFFFFF); static const textPrimary = Color(0xFFFFFFFF);
static const textSecondary = Color(0xFF8E8E93); static const textSecondary = Color(0xFF8E8E93);
static const textTertiary = Color(0xFF9E9E9E); static const textTertiary = Color(0xFF9E9E9E);
static const textTabInactive = Color(0xFFB0B0B0);
/// 原生开屏与冷启动过渡底色。 /// 原生开屏与冷启动过渡底色。
static const splashInk = ink; static const splashInk = ink;
+1 -1
View File
@@ -100,7 +100,7 @@ abstract final class AppDimens {
static const double cardTitleTagGap = 6; static const double cardTitleTagGap = 6;
static const double cardCoverAspectRatio = 5 / 6; static const double cardCoverAspectRatio = 5 / 6;
static const double homeCardBodyExtent = 84; static const double homeCardBodyExtent = 84;
static const double homePrimaryTabFont = 16; static const double homePrimaryTabFont = 18;
static const double homePrimaryTabSelectedFont = 20; static const double homePrimaryTabSelectedFont = 20;
static const double homePrimaryRowHeight = 30; static const double homePrimaryRowHeight = 30;
static const Duration homePrimaryTabAnimationDuration = Duration( static const Duration homePrimaryTabAnimationDuration = Duration(
+1 -1
View File
@@ -286,7 +286,7 @@ class HomeGridHeader extends StatelessWidget {
style: TextStyle( style: TextStyle(
color: selected color: selected
? AppColors.navSelected ? AppColors.navSelected
: AppColors.textTertiary, : AppColors.textTabInactive,
fontSize: selected fontSize: selected
? AppDimens.homePrimaryTabSelectedFont ? AppDimens.homePrimaryTabSelectedFont
: AppDimens.homePrimaryTabFont, : AppDimens.homePrimaryTabFont,
+1 -1
View File
@@ -124,7 +124,7 @@ void main() {
expect(selectedPrimary.duration, AppDimens.homePrimaryTabAnimationDuration); expect(selectedPrimary.duration, AppDimens.homePrimaryTabAnimationDuration);
expect(unselectedPrimary.style.fontSize, AppDimens.homePrimaryTabFont); expect(unselectedPrimary.style.fontSize, AppDimens.homePrimaryTabFont);
expect(unselectedPrimary.style.fontWeight, FontWeight.w400); expect(unselectedPrimary.style.fontWeight, FontWeight.w400);
expect(unselectedPrimary.style.color, AppColors.textTertiary); expect(unselectedPrimary.style.color, AppColors.textTabInactive);
expect( expect(
find.descendant( find.descendant(
of: find.byKey(const Key('home-section-featured')), of: find.byKey(const Key('home-section-featured')),