fix(flutter): 修复下拉刷新页面跟随
This commit is contained in:
1 parent
c4dcb714ab
commit
69eaacd74f
16 files changed
+85
-34
No files matched your search
@@ -75,7 +75,11 @@ void main() {
|
||||
expect(find.byIcon(Icons.star_rounded), findsNWidgets(2));
|
||||
expect(find.byIcon(Icons.favorite_rounded), findsNothing);
|
||||
expect(find.byType(AppPullToRefresh), findsOneWidget);
|
||||
await tester.drag(find.byType(ListView), const Offset(0, 120));
|
||||
expect(
|
||||
tester.widget<ListView>(find.byType(ListView)).physics,
|
||||
AppPullToRefresh.physics,
|
||||
);
|
||||
await tester.drag(find.byType(ListView), const Offset(0, 240));
|
||||
await tester.pump();
|
||||
expect(find.text('Refreshing…'), findsOneWidget);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
Reference in new issue
Block a user