Pesto crash (#8238)
This commit is contained in:
parent
a44d3b7f7f
commit
6303a32d63
@ -152,7 +152,8 @@ class _RecipeGridPageState extends State<RecipeGridPage> {
|
|||||||
recipe: recipe,
|
recipe: recipe,
|
||||||
onTap: () { showRecipePage(context, recipe); },
|
onTap: () { showRecipePage(context, recipe); },
|
||||||
);
|
);
|
||||||
}
|
},
|
||||||
|
childCount: config.recipes.length,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -41,4 +41,18 @@ void main() {
|
|||||||
await tester.pump();
|
await tester.pump();
|
||||||
await tester.pump(const Duration(seconds: 1)); // transition is complete
|
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);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user