fix(player): 收紧推荐页互动栏间距
This commit is contained in:
1 parent
d3dbc9f8dc
commit
4c3acb047c
5 files changed
+34
-32
No files matched your search
@@ -1351,6 +1351,17 @@ void main() {
|
||||
expect(shareImage.width, 32);
|
||||
expect(shareImage.height, 32);
|
||||
expect(shareImage.colorBlendMode, BlendMode.srcIn);
|
||||
final saveRect = tester.getRect(find.byKey(const Key('player-rail-save')));
|
||||
final commentsRect = tester.getRect(
|
||||
find.byKey(const Key('player-rail-comments')),
|
||||
);
|
||||
final likeRect = tester.getRect(find.byKey(const Key('player-rail-like')));
|
||||
final shareRect = tester.getRect(
|
||||
find.byKey(const Key('player-rail-share')),
|
||||
);
|
||||
expect(commentsRect.top - saveRect.bottom, closeTo(24, 0.1));
|
||||
expect(likeRect.top - commentsRect.bottom, closeTo(24, 0.1));
|
||||
expect(shareRect.top - likeRect.bottom, closeTo(24, 0.1));
|
||||
|
||||
final saveButton = tester.widget<IconButton>(
|
||||
find.descendant(
|
||||
|
||||
Reference in new issue
Block a user