@@ -458,14 +458,19 @@ void main() async {
458
458
await tester.pumpAndSettle ();
459
459
460
460
expect (find.byType (Badge ), findsNothing);
461
- expect (find.byType (Divider ), findsNWidgets (2 ));
462
- expect (find.byKey (const Key ('current-day' )), findsOneWidget);
463
461
expect (find.byKey (const Key ('target-day' )), findsOneWidget);
464
462
expect (
465
463
(tester.firstWidget (find.byKey (const Key ('target-day' ))) as Divider )
466
464
.color,
467
465
Colors .green);
468
466
467
+ await tester.scrollUntilVisible (find.byKey (const Key ('current-day' )), 50.0 );
468
+ await tester.pumpAndSettle ();
469
+
470
+ expect (find.byKey (const Key ('current-day' )), findsOneWidget);
471
+
472
+ await tester.scrollUntilVisible (find.byKey (const Key ('day-81' )), - 50.0 );
473
+ await tester.pumpAndSettle ();
469
474
await tester.tap (find
470
475
.descendant (
471
476
of: find.byKey (const Key ('day-82' )),
@@ -626,11 +631,8 @@ void main() async {
626
631
627
632
await tester.tap (find.byType (PlanCard ).first);
628
633
await tester.pumpAndSettle ();
629
- await tester.scrollUntilVisible (
630
- find.byKey (const Key ('day-365' )),
631
- 500.0 ,
632
- maxScrolls: 200 ,
633
- );
634
+ await tester.scrollUntilVisible (find.byKey (const Key ('day-365' )), 500.0 ,
635
+ maxScrolls: 300 );
634
636
await tester.pumpAndSettle ();
635
637
await Future <void >.delayed (Duration (seconds: 2 ));
636
638
await tester.tap (find
@@ -882,12 +884,18 @@ void main() async {
882
884
883
885
await tester.tap (find.byIcon (Icons .edit));
884
886
await tester.pumpAndSettle ();
887
+ await tester.scrollUntilVisible (find.byKey (const Key ('show-events' )), 50.0 ,
888
+ scrollable: find.byType (Scrollable ).last);
889
+ await tester.pumpAndSettle ();
885
890
await tester.tap (find.byKey (const Key ('show-events' )));
886
891
await tester.pumpAndSettle ();
887
892
888
893
var plan = providerContainer.read (plansProvider).plans.first;
889
894
expect (plan.showEvents, true );
890
895
896
+ await tester.scrollUntilVisible (find.byIcon (Icons .done), - 50.0 ,
897
+ scrollable: find.byType (Scrollable ).last);
898
+ await tester.pumpAndSettle ();
891
899
await tester.tap (find.byIcon (Icons .done));
892
900
await tester.pumpAndSettle ();
893
901
@@ -917,12 +925,18 @@ void main() async {
917
925
918
926
await tester.tap (find.byIcon (Icons .edit));
919
927
await tester.pumpAndSettle ();
928
+ await tester.scrollUntilVisible (find.byKey (const Key ('show-events' )), 50.0 ,
929
+ scrollable: find.byType (Scrollable ).last);
930
+ await tester.pumpAndSettle ();
920
931
await tester.tap (find.byKey (const Key ('show-locations' )));
921
932
await tester.pumpAndSettle ();
922
933
923
934
var plan = providerContainer.read (plansProvider).plans.first;
924
935
expect (plan.showLocations, true );
925
936
937
+ await tester.scrollUntilVisible (find.byIcon (Icons .done), - 50.0 ,
938
+ scrollable: find.byType (Scrollable ).last);
939
+ await tester.pumpAndSettle ();
926
940
await tester.tap (find.byIcon (Icons .done));
927
941
await tester.pumpAndSettle ();
928
942
@@ -996,6 +1010,9 @@ void main() async {
996
1010
matching: find.byType (Text ))
997
1011
.first);
998
1012
await tester.pumpAndSettle ();
1013
+ await tester.scrollUntilVisible (find.byIcon (Icons .delete).first, 50.0 ,
1014
+ scrollable: find.byType (Scrollable ).last);
1015
+ await tester.pumpAndSettle ();
999
1016
await tester.tap (find.byIcon (Icons .delete));
1000
1017
await tester.pumpAndSettle ();
1001
1018
0 commit comments