Skip to content
Prev Previous commit
Fixed file formatting
  • Loading branch information
oravecz-jpmc committed Jun 24, 2024
commit d49bb8b8840d910e14a997c6cfba6b2b8d91ead9
Original file line number Diff line number Diff line change
Expand Up @@ -248,13 +248,15 @@ void main() {
testWidgets('adaptive layout can adjust animation duration',
(WidgetTester tester) async {
// Populate the smaller slot layout and let the animation settle.
await tester.pumpWidget(slot(300, const Duration(milliseconds: 100), tester));
await tester
.pumpWidget(slot(300, const Duration(milliseconds: 100), tester));
await tester.pumpAndSettle();
expect(begin, findsOneWidget);
expect(end, findsNothing);

// expand in 1/5 second.
await tester.pumpWidget(slot(500, const Duration(milliseconds: 200), tester));
await tester
.pumpWidget(slot(500, const Duration(milliseconds: 200), tester));

// after 100ms, we expect both widgets to be present.
await tester.pump(const Duration(milliseconds: 50));
Expand Down