@@ -214,7 +214,7 @@ void main() {
214214 // The transition's stack is ordered. The bottom middle is inserted first.
215215 final RenderParagraph bottomMiddle =
216216 tester.renderObject (flying (tester, find.text ('Page 1' )).first);
217- expect (bottomMiddle.text.style! .color, const Color (0xff000306 ));
217+ expect (bottomMiddle.text.style! .color, isSameColorAs ( const Color (0xff000306 ) ));
218218 expect (bottomMiddle.text.style! .fontWeight, FontWeight .w600);
219219 expect (bottomMiddle.text.style! .fontFamily, 'CupertinoSystemText' );
220220 expect (bottomMiddle.text.style! .letterSpacing, - 0.41 );
@@ -225,7 +225,7 @@ void main() {
225225 // are flipped.
226226 final RenderParagraph topBackLabel =
227227 tester.renderObject (flying (tester, find.text ('Page 1' )).last);
228- expect (topBackLabel.text.style! .color, const Color (0xff000306 ));
228+ expect (topBackLabel.text.style! .color, isSameColorAs ( const Color (0xff000306 ) ));
229229 expect (topBackLabel.text.style! .fontWeight, FontWeight .w600);
230230 expect (topBackLabel.text.style! .fontFamily, 'CupertinoSystemText' );
231231 expect (topBackLabel.text.style! .letterSpacing, - 0.41 );
@@ -234,14 +234,14 @@ void main() {
234234
235235 // Move animation further a bit.
236236 await tester.pump (const Duration (milliseconds: 200 ));
237- expect (bottomMiddle.text.style! .color, const Color (0xff005ec5 ));
237+ expect (bottomMiddle.text.style! .color, isSameColorAs ( const Color (0xff005ec5 ) ));
238238 expect (bottomMiddle.text.style! .fontWeight, FontWeight .w400);
239239 expect (bottomMiddle.text.style! .fontFamily, 'CupertinoSystemText' );
240240 expect (bottomMiddle.text.style! .letterSpacing, - 0.41 );
241241
242242 checkOpacity (tester, flying (tester, find.text ('Page 1' )).first, 0.0 );
243243
244- expect (topBackLabel.text.style! .color, const Color (0xff005ec5 ));
244+ expect (topBackLabel.text.style! .color, isSameColorAs ( const Color (0xff005ec5 ) ));
245245 expect (topBackLabel.text.style! .fontWeight, FontWeight .w400);
246246 expect (topBackLabel.text.style! .fontFamily, 'CupertinoSystemText' );
247247 expect (topBackLabel.text.style! .letterSpacing, - 0.41 );
@@ -262,7 +262,7 @@ void main() {
262262 // The transition's stack is ordered. The bottom middle is inserted first.
263263 final RenderParagraph bottomMiddle =
264264 tester.renderObject (flying (tester, find.text ('Page 1' )).first);
265- expect (bottomMiddle.text.style! .color, const Color (0xfff8fbff ));
265+ expect (bottomMiddle.text.style! .color, isSameColorAs ( const Color (0xfff8fbff ) ));
266266 expect (bottomMiddle.text.style! .fontWeight, FontWeight .w600);
267267 expect (bottomMiddle.text.style! .fontFamily, 'CupertinoSystemText' );
268268 expect (bottomMiddle.text.style! .letterSpacing, - 0.41 );
@@ -273,7 +273,7 @@ void main() {
273273 // are flipped.
274274 final RenderParagraph topBackLabel =
275275 tester.renderObject (flying (tester, find.text ('Page 1' )).last);
276- expect (topBackLabel.text.style! .color, const Color (0xfff8fbff ));
276+ expect (topBackLabel.text.style! .color, isSameColorAs ( const Color (0xfff8fbff ) ));
277277 expect (topBackLabel.text.style! .fontWeight, FontWeight .w600);
278278 expect (topBackLabel.text.style! .fontFamily, 'CupertinoSystemText' );
279279 expect (topBackLabel.text.style! .letterSpacing, - 0.41 );
@@ -282,14 +282,14 @@ void main() {
282282
283283 // Move animation further a bit.
284284 await tester.pump (const Duration (milliseconds: 200 ));
285- expect (bottomMiddle.text.style! .color, const Color (0xff409fff ));
285+ expect (bottomMiddle.text.style! .color, isSameColorAs ( const Color (0xff409fff ) ));
286286 expect (bottomMiddle.text.style! .fontWeight, FontWeight .w400);
287287 expect (bottomMiddle.text.style! .fontFamily, 'CupertinoSystemText' );
288288 expect (bottomMiddle.text.style! .letterSpacing, - 0.41 );
289289
290290 checkOpacity (tester, flying (tester, find.text ('Page 1' )).first, 0.0 );
291291
292- expect (topBackLabel.text.style! .color, const Color (0xff409fff ));
292+ expect (topBackLabel.text.style! .color, isSameColorAs ( const Color (0xff409fff ) ));
293293 expect (topBackLabel.text.style! .fontWeight, FontWeight .w400);
294294 expect (topBackLabel.text.style! .fontFamily, 'CupertinoSystemText' );
295295 expect (topBackLabel.text.style! .letterSpacing, - 0.41 );
@@ -365,7 +365,7 @@ void main() {
365365 // The transition's stack is ordered. The bottom middle is inserted first.
366366 final RenderParagraph bottomMiddle =
367367 tester.renderObject (flying (tester, find.text ('Page 1' )).first);
368- expect (bottomMiddle.text.style! .color, const Color (0xff000306 ));
368+ expect (bottomMiddle.text.style! .color, isSameColorAs ( const Color (0xff000306 ) ));
369369
370370 expect (
371371 tester.getTopLeft (flying (tester, find.text ('Page 1' )).first),
@@ -379,7 +379,7 @@ void main() {
379379 // are flipped.
380380 final RenderParagraph topBackLabel =
381381 tester.renderObject (flying (tester, find.text ('Page 1' )).last);
382- expect (topBackLabel.text.style! .color, const Color (0xff000306 ));
382+ expect (topBackLabel.text.style! .color, isSameColorAs ( const Color (0xff000306 ) ));
383383 expect (
384384 tester.getTopLeft (flying (tester, find.text ('Page 1' )).last),
385385 const Offset (
@@ -417,7 +417,7 @@ void main() {
417417 // The transition's stack is ordered. The bottom middle is inserted first.
418418 final RenderParagraph bottomMiddle =
419419 tester.renderObject (flying (tester, find.text ('Page 1' )).first);
420- expect (bottomMiddle.text.style! .color, const Color (0xff000306 ));
420+ expect (bottomMiddle.text.style! .color, isSameColorAs ( const Color (0xff000306 ) ));
421421 expect (
422422 tester.getTopLeft (flying (tester, find.text ('Page 1' )).first),
423423 const Offset (
@@ -430,7 +430,7 @@ void main() {
430430 // are flipped.
431431 final RenderParagraph topBackLabel =
432432 tester.renderObject (flying (tester, find.text ('Page 1' )).last);
433- expect (topBackLabel.text.style! .color, const Color (0xff000306 ));
433+ expect (topBackLabel.text.style! .color, isSameColorAs ( const Color (0xff000306 ) ));
434434 expect (
435435 tester.getTopLeft (flying (tester, find.text ('Page 1' )).last),
436436 const Offset (
@@ -1116,27 +1116,27 @@ void main() {
11161116 // The transition's stack is ordered. The bottom large title is inserted first.
11171117 final RenderParagraph bottomLargeTitle =
11181118 tester.renderObject (flying (tester, find.text ('Page 1' )).first);
1119- expect (bottomLargeTitle.text.style! .color, const Color (0xff000306 ));
1119+ expect (bottomLargeTitle.text.style! .color, isSameColorAs ( const Color (0xff000306 ) ));
11201120 expect (bottomLargeTitle.text.style! .fontWeight, FontWeight .w700);
11211121 expect (bottomLargeTitle.text.style! .fontFamily, 'CupertinoSystemDisplay' );
11221122 expect (bottomLargeTitle.text.style! .letterSpacing, moreOrLessEquals (0.35967791542410854 ));
11231123
11241124 // The top back label is styled exactly the same way.
11251125 final RenderParagraph topBackLabel =
11261126 tester.renderObject (flying (tester, find.text ('Page 1' )).last);
1127- expect (topBackLabel.text.style! .color, const Color (0xff000306 ));
1127+ expect (topBackLabel.text.style! .color, isSameColorAs ( const Color (0xff000306 ) ));
11281128 expect (topBackLabel.text.style! .fontWeight, FontWeight .w700);
11291129 expect (topBackLabel.text.style! .fontFamily, 'CupertinoSystemDisplay' );
11301130 expect (topBackLabel.text.style! .letterSpacing, moreOrLessEquals (0.35967791542410854 ));
11311131
11321132 // Move animation further a bit.
11331133 await tester.pump (const Duration (milliseconds: 200 ));
1134- expect (bottomLargeTitle.text.style! .color, const Color (0xff005ec5 ));
1134+ expect (bottomLargeTitle.text.style! .color, isSameColorAs ( const Color (0xff005ec5 ) ));
11351135 expect (bottomLargeTitle.text.style! .fontWeight, FontWeight .w500);
11361136 expect (bottomLargeTitle.text.style! .fontFamily, 'CupertinoSystemText' );
11371137 expect (bottomLargeTitle.text.style! .letterSpacing, moreOrLessEquals (- 0.23270857974886894 ));
11381138
1139- expect (topBackLabel.text.style! .color, const Color (0xff005ec5 ));
1139+ expect (topBackLabel.text.style! .color, isSameColorAs ( const Color (0xff005ec5 ) ));
11401140 expect (topBackLabel.text.style! .fontWeight, FontWeight .w500);
11411141 expect (topBackLabel.text.style! .fontFamily, 'CupertinoSystemText' );
11421142 expect (topBackLabel.text.style! .letterSpacing, moreOrLessEquals (- 0.23270857974886894 ));
0 commit comments