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