fix(home): 调整短剧封面比例
This commit is contained in:
1 parent
3886c577eb
commit
91f4de01a1
5 files changed
+12
-5
No files matched your search
@@ -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')),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user