@@ -380,7 +380,7 @@ void main() {
380380
381381 expect (
382382 tester.getSize (find.byType (CupertinoTextField )),
383- const Size (200 , 29 ), // 29 is the height of the default font + padding etc.
383+ const Size (200 , 31 ), // 31 is the height of the default font + padding etc.
384384 );
385385 },
386386 );
@@ -401,7 +401,7 @@ void main() {
401401
402402 expect (
403403 tester.getSize (find.byType (CupertinoTextField )),
404- const Size (200 , 29 ), // 29 is the height of the default font (17) + decoration (12).
404+ const Size (200 , 31 ), // 31 is the height of the default font (17) + decoration (12).
405405 );
406406 },
407407 );
@@ -508,7 +508,7 @@ void main() {
508508
509509 expect (
510510 tester.getSize (find.byType (CupertinoTextField )),
511- const Size (200 , 63 ), // 63 is the height of the default font (17) * maxlines (3) + decoration height (12).
511+ const Size (200 , 65 ), // 65 is the height of the default font (17) * maxlines (3) + decoration height (12).
512512 );
513513 },
514514 );
@@ -529,7 +529,7 @@ void main() {
529529
530530 expect (
531531 tester.getSize (find.byType (CupertinoTextField )),
532- const Size (200 , 63 ),
532+ const Size (200 , 65 ),
533533 );
534534 },
535535 );
@@ -556,7 +556,7 @@ void main() {
556556
557557 expect (
558558 tester.getSize (find.byType (CupertinoTextField )),
559- const Size (200 , 36 ),
559+ const Size (200 , 38 ),
560560 );
561561 },
562562 // TODO(mdebbar): Strut styles support.
@@ -586,7 +586,7 @@ void main() {
586586
587587 expect (
588588 tester.getSize (find.byType (CupertinoTextField )),
589- const Size (200 , 66 ),
589+ const Size (200 , 68 ),
590590 );
591591 },
592592 // TODO(mdebbar): Strut styles support.
@@ -686,7 +686,7 @@ void main() {
686686
687687 expect (
688688 tester.getTopLeft (find.text ('initial' )) - tester.getTopLeft (find.byType (CupertinoTextField )),
689- const Offset (6 .0 , 6 .0 ),
689+ const Offset (7 .0 , 7 .0 ),
690690 );
691691 },
692692 );
@@ -913,15 +913,15 @@ void main() {
913913 );
914914
915915 expect (
916- tester.getTopRight (find.byIcon (CupertinoIcons .add)).dx + 6 .0 , // 6px standard padding around input.
916+ tester.getTopRight (find.byIcon (CupertinoIcons .add)).dx + 7 .0 , // 7px standard padding around input.
917917 tester.getTopLeft (find.byType (EditableText )).dx,
918918 );
919919
920920 expect (
921921 tester.getTopLeft (find.byType (EditableText )).dx,
922922 tester.getTopLeft (find.byType (CupertinoTextField )).dx
923923 + tester.getSize (find.byIcon (CupertinoIcons .add)).width
924- + 6 .0 ,
924+ + 7 .0 ,
925925 );
926926 },
927927 );
@@ -944,7 +944,7 @@ void main() {
944944 // The position should just be the edge of the whole text field plus padding.
945945 expect (
946946 tester.getTopLeft (find.byType (EditableText )).dx,
947- tester.getTopLeft (find.byType (CupertinoTextField )).dx + 6 .0 ,
947+ tester.getTopLeft (find.byType (CupertinoTextField )).dx + 7 .0 ,
948948 );
949949
950950 await tester.enterText (find.byType (CupertinoTextField ), 'text input' );
@@ -958,7 +958,7 @@ void main() {
958958 tester.getTopLeft (find.byType (EditableText )).dx,
959959 tester.getTopLeft (find.byType (CupertinoTextField )).dx
960960 + tester.getSize (find.byIcon (CupertinoIcons .add)).width
961- + 6 .0 ,
961+ + 7 .0 ,
962962 );
963963 },
964964 );
@@ -979,15 +979,15 @@ void main() {
979979 );
980980
981981 expect (
982- tester.getTopRight (find.byType (EditableText )).dx + 6 .0 ,
983- tester.getTopLeft (find.byIcon (CupertinoIcons .add)).dx, // 6px standard padding around input.
982+ tester.getTopRight (find.byType (EditableText )).dx + 7 .0 ,
983+ tester.getTopLeft (find.byIcon (CupertinoIcons .add)).dx, // 7px standard padding around input.
984984 );
985985
986986 expect (
987987 tester.getTopRight (find.byType (EditableText )).dx,
988988 tester.getTopRight (find.byType (CupertinoTextField )).dx
989989 - tester.getSize (find.byIcon (CupertinoIcons .add)).width
990- - 6 .0 ,
990+ - 7 .0 ,
991991 );
992992 },
993993 );
@@ -1170,7 +1170,7 @@ void main() {
11701170
11711171 expect (
11721172 tester.getTopRight (find.byType (EditableText )).dx,
1173- 800.0 - 30.0 /* size of button */ - 6 .0 /* padding */ ,
1173+ 800.0 - 30.0 /* size of button */ - 7 .0 /* padding */ ,
11741174 );
11751175
11761176 await tester.pumpWidget (
@@ -1188,7 +1188,7 @@ void main() {
11881188 expect (find.byIcon (CupertinoIcons .clear_thick_circled), findsNothing);
11891189 expect (
11901190 tester.getTopRight (find.byType (EditableText )).dx,
1191- 800.0 - 6 .0 /* padding */ ,
1191+ 800.0 - 7 .0 /* padding */ ,
11921192 );
11931193
11941194 await tester.enterText (find.byType (CupertinoTextField ), 'text input' );
@@ -1198,7 +1198,7 @@ void main() {
11981198 expect (find.text ('text input' ), findsOneWidget);
11991199 expect (
12001200 tester.getTopRight (find.byType (EditableText )).dx,
1201- 800.0 - 30.0 - 6 .0 ,
1201+ 800.0 - 30.0 - 7 .0 ,
12021202 );
12031203
12041204 await tester.pumpWidget (
@@ -1302,7 +1302,7 @@ void main() {
13021302
13031303 expect (
13041304 tester.getTopRight (find.byType (EditableText )).dx,
1305- 800.0 - 30.0 /* size of button */ - 6 .0 /* padding */ ,
1305+ 800.0 - 30.0 /* size of button */ - 7 .0 /* padding */ ,
13061306 );
13071307
13081308 controller.text = 'non empty text' ;
@@ -1314,7 +1314,7 @@ void main() {
13141314 // Still just takes the space of one widget.
13151315 expect (
13161316 tester.getTopRight (find.byType (EditableText )).dx,
1317- 800.0 - 24.0 /* size of button */ - 6 .0 /* padding */ ,
1317+ 800.0 - 24.0 /* size of button */ - 7 .0 /* padding */ ,
13181318 );
13191319 },
13201320 );
@@ -1334,7 +1334,7 @@ void main() {
13341334
13351335 expect (
13361336 tester.getSize (find.byType (CupertinoTextField )).height,
1337- 29 .0 ,
1337+ 31 .0 ,
13381338 );
13391339
13401340 await tester.pumpWidget (
@@ -1353,7 +1353,7 @@ void main() {
13531353
13541354 expect (
13551355 tester.getSize (find.byType (CupertinoTextField )).height,
1356- 62 .0 ,
1356+ 64 .0 ,
13571357 );
13581358 },
13591359 );
@@ -1371,7 +1371,7 @@ void main() {
13711371
13721372 expect (
13731373 tester.getSize (find.byType (CupertinoTextField )).height,
1374- 29 .0 ,
1374+ 31 .0 ,
13751375 );
13761376
13771377 await tester.pumpWidget (
@@ -1389,7 +1389,7 @@ void main() {
13891389
13901390 expect (
13911391 tester.getSize (find.byType (CupertinoTextField )).height,
1392- 62 .0 ,
1392+ 64 .0 ,
13931393 );
13941394 },
13951395 );
@@ -1440,15 +1440,15 @@ void main() {
14401440
14411441 expect (
14421442 tester.getSize (find.byType (CupertinoTextField )).height,
1443- 29 .0 , // Initially one line high.
1443+ 31 .0 , // Initially one line high.
14441444 );
14451445
14461446 await tester.enterText (find.byType (CupertinoTextField ), '\n ' );
14471447 await tester.pump ();
14481448
14491449 expect (
14501450 tester.getSize (find.byType (CupertinoTextField )).height,
1451- 46 .0 , // Initially one line high.
1451+ 48 .0 , // Initially one line high.
14521452 );
14531453 },
14541454 );
@@ -1468,15 +1468,15 @@ void main() {
14681468
14691469 expect (
14701470 tester.getSize (find.byType (CupertinoTextField )).height,
1471- 29 .0 , // Initially one line high.
1471+ 31 .0 , // Initially one line high.
14721472 );
14731473
14741474 await tester.enterText (find.byType (CupertinoTextField ), '\n ' );
14751475 await tester.pump ();
14761476
14771477 expect (
14781478 tester.getSize (find.byType (CupertinoTextField )).height,
1479- 46 .0 , // Initially one line high.
1479+ 48 .0 , // Initially one line high.
14801480 );
14811481 },
14821482 );
@@ -3001,14 +3001,14 @@ void main() {
30013001
30023002 expect (lastCharEndpoint.length, 1 );
30033003 // The last character is now on screen near the right edge.
3004- expect (lastCharEndpoint[0 ].point.dx, moreOrLessEquals (786.73 , epsilon: 1 ));
3004+ expect (lastCharEndpoint[0 ].point.dx, moreOrLessEquals (785.40 , epsilon: 1 ));
30053005
30063006 final List <TextSelectionPoint > firstCharEndpoint = renderEditable.getEndpointsForSelection (
30073007 const TextSelection .collapsed (offset: 0 ), // First character's position.
30083008 );
30093009 expect (firstCharEndpoint.length, 1 );
30103010 // The first character is now offscreen to the left.
3011- expect (firstCharEndpoint[0 ].point.dx, moreOrLessEquals (- 308.20 , epsilon: 1 ));
3011+ expect (firstCharEndpoint[0 ].point.dx, moreOrLessEquals (- 309.30 , epsilon: 1 ));
30123012 }, variant: TargetPlatformVariant .all (excluding: < TargetPlatform > { TargetPlatform .iOS, TargetPlatform .macOS }));
30133013
30143014 testWidgets ('long press drag can edge scroll on Apple platforms' , (WidgetTester tester) async {
@@ -3098,14 +3098,14 @@ void main() {
30983098
30993099 expect (lastCharEndpoint.length, 1 );
31003100 // The last character is now on screen.
3101- expect (lastCharEndpoint[0 ].point.dx, moreOrLessEquals (786 .73 , epsilon: 0.25 ));
3101+ expect (lastCharEndpoint[0 ].point.dx, moreOrLessEquals (784 .73 , epsilon: 0.25 ));
31023102
31033103 final List <TextSelectionPoint > firstCharEndpoint = renderEditable.getEndpointsForSelection (
31043104 const TextSelection .collapsed (offset: 0 ), // First character's position.
31053105 );
31063106 expect (firstCharEndpoint.length, 1 );
31073107 // The first character is now offscreen to the left.
3108- expect (firstCharEndpoint[0 ].point.dx, moreOrLessEquals (- 308 .20 , epsilon: 0.25 ));
3108+ expect (firstCharEndpoint[0 ].point.dx, moreOrLessEquals (- 310 .20 , epsilon: 0.25 ));
31093109 }, variant: const TargetPlatformVariant (< TargetPlatform > { TargetPlatform .iOS, TargetPlatform .macOS }));
31103110
31113111 testWidgets (
@@ -4608,7 +4608,7 @@ void main() {
46084608 child: ListView (
46094609 controller: scrollController,
46104610 children: < Widget > [
4611- Container (height: 585 ), // Push field almost off screen.
4611+ Container (height: 583 ), // Push field almost off screen.
46124612 CupertinoTextField (controller: controller),
46134613 Container (height: 1000 ),
46144614 ],
@@ -4623,7 +4623,7 @@ void main() {
46234623
46244624 // The ListView has scrolled to keep the TextField and cursor handle
46254625 // visible.
4626- expect (scrollController.offset, 26 .0 );
4626+ expect (scrollController.offset, 25 .0 );
46274627 });
46284628
46294629 testWidgets ('disabled state golden' , (WidgetTester tester) async {
@@ -5126,7 +5126,7 @@ void main() {
51265126
51275127 // The EditableText is at the top.
51285128 expect (tester.getTopLeft (find.byType (CupertinoTextField )).dy, moreOrLessEquals (size.height, epsilon: .0001 ));
5129- expect (tester.getTopLeft (find.byType (EditableText )).dy, moreOrLessEquals (206 .0 , epsilon: .0001 ));
5129+ expect (tester.getTopLeft (find.byType (EditableText )).dy, moreOrLessEquals (207 .0 , epsilon: .0001 ));
51305130 });
51315131
51325132 testWidgets ('align center' , (WidgetTester tester) async {
@@ -5220,7 +5220,7 @@ void main() {
52205220
52215221 // The EditableText is at the bottom.
52225222 expect (tester.getTopLeft (find.byType (CupertinoTextField )).dy, moreOrLessEquals (size.height, epsilon: .0001 ));
5223- expect (tester.getTopLeft (find.byType (EditableText )).dy, moreOrLessEquals (377 .0 , epsilon: .0001 ));
5223+ expect (tester.getTopLeft (find.byType (EditableText )).dy, moreOrLessEquals (376 .0 , epsilon: .0001 ));
52245224 });
52255225
52265226 testWidgets ('align as a double' , (WidgetTester tester) async {
@@ -5267,7 +5267,7 @@ void main() {
52675267
52685268 // The EditableText is near the bottom.
52695269 expect (tester.getTopLeft (find.byType (CupertinoTextField )).dy, moreOrLessEquals (size.height, epsilon: .0001 ));
5270- expect (tester.getTopLeft (find.byType (EditableText )).dy, moreOrLessEquals (355.625 , epsilon: .0001 ));
5270+ expect (tester.getTopLeft (find.byType (EditableText )).dy, moreOrLessEquals (354.875 , epsilon: .0001 ));
52715271 });
52725272 });
52735273
0 commit comments