Skip to content

Commit 650592b

Browse files
authored
Updated Nested SingleChildScrollView test for clarity (flutter#54670)
1 parent 80953ee commit 650592b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/flutter/test/widgets/single_child_scroll_view_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,9 +581,9 @@ void main() {
581581
children: List<Widget>.generate(10, (int y) {
582582
return Row(
583583
children: children[y] = List<Widget>.generate(10, (int x) {
584-
// nonconst is used below to avoid const constructor and to force a new instance
585584
return SizedBox(
586-
height: nonconst(100.0),
585+
key: UniqueKey(),
586+
height: 100.0,
587587
width: 100.0,
588588
);
589589
}),

0 commit comments

Comments
 (0)