fix(flutter): 修复下拉刷新页面跟随

This commit is contained in:
Zhou Weidong committed 2026-10-20 16:57:28 +08:00
1 parent c4dcb714ab
commit 69eaacd74f
16 files changed
+85 -34

No files matched your search

+5 -1
View File
@@ -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();