Skip to content

Commit bf9e75a

Browse files
committed
Wrap goldens with RepaintBoundary
1 parent df3218f commit bf9e75a

File tree

1 file changed

+24
-16
lines changed

1 file changed

+24
-16
lines changed

packages/flutter/test/cupertino/radio_test.dart

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -444,10 +444,12 @@ void main() {
444444
Widget buildRadio({required int value, required int groupValue}) {
445445
return CupertinoApp(
446446
home: Center(
447-
child: CupertinoRadio<int>(
448-
value: value,
449-
groupValue: groupValue,
450-
onChanged: (int? i) { },
447+
child: RepaintBoundary(
448+
child: CupertinoRadio<int>(
449+
value: value,
450+
groupValue: groupValue,
451+
onChanged: (int? i) { },
452+
),
451453
),
452454
),
453455
);
@@ -469,10 +471,12 @@ void main() {
469471
return CupertinoApp(
470472
theme: const CupertinoThemeData(brightness: Brightness.dark),
471473
home: Center(
472-
child: CupertinoRadio<int>(
473-
value: value,
474-
groupValue: groupValue,
475-
onChanged: enabled ? (int? i) { } : null,
474+
child: RepaintBoundary(
475+
child: CupertinoRadio<int>(
476+
value: value,
477+
groupValue: groupValue,
478+
onChanged: enabled ? (int? i) { } : null,
479+
),
476480
),
477481
),
478482
);
@@ -493,10 +497,12 @@ void main() {
493497
Widget buildRadio({required int value, required int groupValue}) {
494498
return CupertinoApp(
495499
home: Center(
496-
child: CupertinoRadio<int>(
497-
value: value,
498-
groupValue: groupValue,
499-
onChanged: null,
500+
child: RepaintBoundary(
501+
child: CupertinoRadio<int>(
502+
value: value,
503+
groupValue: groupValue,
504+
onChanged: null,
505+
),
500506
),
501507
),
502508
);
@@ -518,10 +524,12 @@ void main() {
518524
return CupertinoApp(
519525
theme: const CupertinoThemeData(brightness: Brightness.dark),
520526
home: Center(
521-
child: CupertinoRadio<int>(
522-
value: value,
523-
groupValue: groupValue,
524-
onChanged: null,
527+
child: RepaintBoundary(
528+
child: CupertinoRadio<int>(
529+
value: value,
530+
groupValue: groupValue,
531+
onChanged: null,
532+
),
525533
),
526534
),
527535
);

0 commit comments

Comments
 (0)