Commit 6303a32d authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Pesto crash (#8238)

parent a44d3b7f
......@@ -152,7 +152,8 @@ class _RecipeGridPageState extends State<RecipeGridPage> {
recipe: recipe,
onTap: () { showRecipePage(context, recipe); },
);
}
},
childCount: config.recipes.length,
),
),
);
......
......@@ -41,4 +41,18 @@ void main() {
await tester.pump();
await tester.pump(const Duration(seconds: 1)); // transition is complete
});
testWidgets('Pesto can be scrolled all the way down', (WidgetTester tester) async {
await tester.pumpWidget(new GalleryApp());
await tester.pump(); // see https://github.com/flutter/flutter/issues/1865
await tester.tap(find.text('Pesto'));
await tester.pump(); // Launch pesto
await tester.pump(const Duration(seconds: 1)); // transition is complete
await tester.fling(find.text('Pesto Bruschetta'), const Offset(0.0, -200.0), 10000.0);
await tester.pump(); // start fling
await tester.pumpUntilNoTransientCallbacks();
expect(find.text('Sicilian-Style sardines'), findsOneWidget);
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment