fix(home): 使用图片渲染搜索栏入口
This commit is contained in:
1 parent
afd8927a9f
commit
953ddec587
4 files changed
+30
-8
No files matched your search
@@ -74,6 +74,14 @@ void main() {
|
||||
tester.getCenter(find.byKey(const Key('home-vip-icon-frame'))).dy,
|
||||
tester.getCenter(find.byKey(const Key('home-wallet-icon-frame'))).dy,
|
||||
);
|
||||
final crownImage = tester.widget<Image>(
|
||||
find.byKey(const Key('home-vip-image')),
|
||||
);
|
||||
final giftImage = tester.widget<Image>(
|
||||
find.byKey(const Key('home-wallet-image')),
|
||||
);
|
||||
expect((crownImage.image as AssetImage).assetName, 'assets/icon/crown.png');
|
||||
expect((giftImage.image as AssetImage).assetName, 'assets/icon/gift.png');
|
||||
expect(
|
||||
tester.getCenter(vipEntry).dy,
|
||||
closeTo(tester.getCenter(searchEntry).dy, 0.1),
|
||||
|
||||
Reference in new issue
Block a user