fix(home): 调整短剧封面比例

This commit is contained in:
Zhou Weidong committed 2026-10-22 18:34:11 +08:00
1 parent 3886c577eb
commit 91f4de01a1
5 files changed
+12 -5

No files matched your search

+4 -1
View File
@@ -40,7 +40,10 @@ void main() {
final cover = find.byKey(const Key('home-feed-cover-anime-card'));
final coverSize = tester.getSize(cover);
expect(coverSize.height / coverSize.width, closeTo(6 / 5, 0.02));
expect(
coverSize.height / coverSize.width,
closeTo(1 / AppDimens.cardCoverAspectRatio, 0.02),
);
final coverClip = tester.widget<ClipRRect>(
find.byKey(const Key('home-feed-cover-clip-anime-card')),
);