fix(home): 调整播放量行内展示

This commit is contained in:
Zhou Weidong committed 2026-10-22 18:27:55 +08:00
1 parent c9fce7745e
commit f7782aef14
8 files changed
+138 -114

No files matched your search

+2 -1
View File
@@ -87,7 +87,8 @@ void main() {
final views = tester.widget<Text>(
find.byKey(const Key('following-views-the-signal-demo')),
);
expect(views.style?.fontSize, AppDimens.cardViewsFont);
expect(views.style?.fontSize, AppDimens.cardPlayCountFont);
expect(views.style?.fontWeight, FontWeight.w400);
expect(views.style?.color, AppColors.textPrimary);
expect(
find.descendant(
+6 -1
View File
@@ -74,8 +74,13 @@ void main() {
find.descendant(of: views, matching: find.byType(Text)),
);
expect(viewsText.data, '44.5w');
expect(viewsText.style?.fontSize, AppDimens.cardViewsFont);
expect(viewsText.style?.fontSize, AppDimens.cardPlayCountFont);
expect(viewsText.style?.fontWeight, FontWeight.w400);
expect(viewsText.style?.color, AppColors.navSelected);
expect(
find.descendant(of: cover, matching: find.byKey(views)),
findsNothing,
);
expect(
find.descendant(
of: views,
+2 -1
View File
@@ -108,7 +108,8 @@ void main() {
matching: find.byType(Text),
),
);
expect(views.style?.fontSize, AppDimens.cardViewsFont);
expect(views.style?.fontSize, AppDimens.cardPlayCountFont);
expect(views.style?.fontWeight, FontWeight.w400);
expect(views.style?.color, AppColors.textPrimary);
final viewIcon = find.descendant(
of: find.byKey(const Key('recommend-views-hits-the-signal-demo')),