style: 统一下拉与加载指示器

This commit is contained in:
Zhou Weidong committed 2026-10-22 22:07:13 +08:00
1 parent 397483d339
commit 6f1da5aa39
26 files changed
+127 -241

No files matched your search

+2 -1
View File
@@ -388,7 +388,8 @@ void main() {
);
await tester.drag(_verticalFeed, const Offset(0, 240));
await tester.pump();
expect(find.text('Refreshing…'), findsOneWidget);
expect(find.byKey(const Key('pull-refresh-indicator')), findsOneWidget);
expect(find.text('Refreshing…'), findsNothing);
await tester.pumpAndSettle();
});
}
+3 -3
View File
@@ -198,7 +198,7 @@ void main() {
await tester.pump();
expect(find.byKey(const Key('ranking-row-39')), findsOneWidget);
expect(find.byKey(const Key('ranking-row-40')), findsNothing);
expect(find.byKey(const Key('ranking-no-more')), findsOneWidget);
expect(find.byKey(const Key('ranking-no-more')), findsNothing);
position.jumpTo(0);
await tester.pump();
@@ -211,7 +211,7 @@ void main() {
expect(position.pixels, 0);
position.jumpTo(position.maxScrollExtent);
await tester.pump();
expect(find.byKey(const Key('ranking-load-more')), findsOneWidget);
expect(find.byKey(const Key('ranking-load-more')), findsNothing);
expect(find.byKey(const Key('ranking-no-more')), findsNothing);
await tester.pumpAndSettle();
});
@@ -243,7 +243,7 @@ void main() {
await tester.pumpAndSettle();
position.jumpTo(position.maxScrollExtent);
await tester.pumpAndSettle();
expect(find.byKey(const Key('new-releases-no-more')), findsOneWidget);
expect(find.byKey(const Key('new-releases-no-more')), findsNothing);
position.jumpTo(0);
await tester.pump();