@@ -9,7 +9,7 @@ import 'package:flutter_test/flutter_test.dart';
|
||||
void main() {
|
||||
testWidgets('Trigger RefreshIndicator - Pull from top', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(
|
||||
const example.MyApp(),
|
||||
const example.RefreshIndicatorExampleApp(),
|
||||
);
|
||||
|
||||
await tester.fling(find.text('Item 1'), const Offset(0.0, 300.0), 1000.0);
|
||||
@@ -22,7 +22,7 @@ void main() {
|
||||
|
||||
testWidgets('Trigger RefreshIndicator - Button', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(
|
||||
const example.MyApp(),
|
||||
const example.RefreshIndicatorExampleApp(),
|
||||
);
|
||||
|
||||
await tester.tap(find.byType(FloatingActionButton));
|
||||
|
||||
@@ -9,7 +9,7 @@ import 'package:flutter_test/flutter_test.dart';
|
||||
void main() {
|
||||
testWidgets('Pulling from nested scroll view triggers refresh indicator', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(
|
||||
const example.MyApp(),
|
||||
const example.RefreshIndicatorExampleApp(),
|
||||
);
|
||||
|
||||
// Pull from the upper scroll view.
|
||||
|
||||
Reference in New Issue
Block a user