@@ -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
@@ -897,9 +905,15 @@ void main() async {
897
905
898
906
await tester.tap (find.byIcon (Icons .edit));
899
907
await tester.pumpAndSettle ();
908
+ await tester.scrollUntilVisible (find.byKey (const Key ('show-events' )), 50.0 ,
909
+ scrollable: find.byType (Scrollable ).last);
910
+ await tester.pumpAndSettle ();
900
911
await tester.tap (find.byKey (const Key ('show-events' )));
901
912
await tester.pumpAndSettle ();
902
913
914
+ await tester.scrollUntilVisible (find.byIcon (Icons .done), - 50.0 ,
915
+ scrollable: find.byType (Scrollable ).last);
916
+ await tester.pumpAndSettle ();
903
917
await tester.tap (find.byIcon (Icons .done));
904
918
await tester.pumpAndSettle ();
905
919
@@ -917,12 +931,19 @@ void main() async {
917
931
918
932
await tester.tap (find.byIcon (Icons .edit));
919
933
await tester.pumpAndSettle ();
934
+ await tester.scrollUntilVisible (
935
+ find.byKey (const Key ('show-locations' )), 50.0 ,
936
+ scrollable: find.byType (Scrollable ).last);
937
+ await tester.pumpAndSettle ();
920
938
await tester.tap (find.byKey (const Key ('show-locations' )));
921
939
await tester.pumpAndSettle ();
922
940
923
941
var plan = providerContainer.read (plansProvider).plans.first;
924
942
expect (plan.showLocations, true );
925
943
944
+ await tester.scrollUntilVisible (find.byIcon (Icons .done), - 50.0 ,
945
+ scrollable: find.byType (Scrollable ).last);
946
+ await tester.pumpAndSettle ();
926
947
await tester.tap (find.byIcon (Icons .done));
927
948
await tester.pumpAndSettle ();
928
949
@@ -932,9 +953,16 @@ void main() async {
932
953
933
954
await tester.tap (find.byIcon (Icons .edit));
934
955
await tester.pumpAndSettle ();
956
+ await tester.scrollUntilVisible (
957
+ find.byKey (const Key ('show-locations' )), 50.0 ,
958
+ scrollable: find.byType (Scrollable ).last);
959
+ await tester.pumpAndSettle ();
935
960
await tester.tap (find.byKey (const Key ('show-locations' )));
936
961
await tester.pumpAndSettle ();
937
962
963
+ await tester.scrollUntilVisible (find.byIcon (Icons .done), - 50.0 ,
964
+ scrollable: find.byType (Scrollable ).last);
965
+ await tester.pumpAndSettle ();
938
966
await tester.tap (find.byIcon (Icons .done));
939
967
await tester.pumpAndSettle ();
940
968
@@ -996,6 +1024,9 @@ void main() async {
996
1024
matching: find.byType (Text ))
997
1025
.first);
998
1026
await tester.pumpAndSettle ();
1027
+ await tester.scrollUntilVisible (find.byIcon (Icons .delete).first, 50.0 ,
1028
+ scrollable: find.byType (Scrollable ).last);
1029
+ await tester.pumpAndSettle ();
999
1030
await tester.tap (find.byIcon (Icons .delete));
1000
1031
await tester.pumpAndSettle ();
1001
1032
0 commit comments