feat(flutter): 榜单前三铺满与剧场分类吸顶下划线
This commit is contained in:
1 parent
d80fff74ba
commit
04a1a4ee82
4 files changed
+130
-52
No files matched your search
@@ -77,9 +77,10 @@ void main() {
|
||||
final top1 = tester.getRect(find.byKey(const Key('ranking-cover-1')));
|
||||
final top2 = tester.getRect(find.byKey(const Key('ranking-cover-2')));
|
||||
final top3 = tester.getRect(find.byKey(const Key('ranking-cover-3')));
|
||||
expect(top1.size, const Size(120, 160));
|
||||
expect(top2.size, const Size(92, 124));
|
||||
expect(top3.size, const Size(92, 124));
|
||||
expect(top1.width, greaterThan(top2.width));
|
||||
expect(top3.width, closeTo(top2.width, 0.5));
|
||||
expect(top2.left, closeTo(14, 0.5));
|
||||
expect(top3.right, closeTo(376, 0.5));
|
||||
expect(top2.left, lessThan(top1.left));
|
||||
expect(top3.left, greaterThan(top1.right));
|
||||
expect(top1.bottom, closeTo(top2.bottom, 0.5));
|
||||
@@ -95,6 +96,13 @@ void main() {
|
||||
expect(find.byKey(const Key('ranking-row-3')), findsOneWidget);
|
||||
expect(find.byKey(const Key('ranking-row-2')), findsNothing);
|
||||
expect(find.byKey(const Key('ranking-top-4')), findsOneWidget);
|
||||
expect(
|
||||
find.descendant(
|
||||
of: find.byKey(const Key('ranking-row-3')),
|
||||
matching: find.text('synopsis'),
|
||||
),
|
||||
findsOneWidget,
|
||||
);
|
||||
});
|
||||
|
||||
testWidgets('should_truncate_podium_when_less_than_three', (tester) async {
|
||||
|
||||
Reference in new issue
Block a user