Skip to content

Commit f250db6

Browse files
authored
Adds small fix to Cupertino navigation demo
1 parent 8d249c2 commit f250db6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/flutter_gallery/lib/demo/cupertino/cupertino_navigation_demo.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ const int _kChildCount = 50;
3434

3535
class CupertinoNavigationDemo extends StatelessWidget {
3636
CupertinoNavigationDemo()
37-
: colorItems = List<Color>.generate(50, (int index) {
37+
: colorItems = List<Color>.generate(_kChildCount, (int index) {
3838
return coolColors[math.Random().nextInt(coolColors.length)];
3939
}) ,
40-
colorNameItems = List<String>.generate(50, (int index) {
40+
colorNameItems = List<String>.generate(_kChildCount, (int index) {
4141
return coolColorNames[math.Random().nextInt(coolColorNames.length)];
4242
});
4343

0 commit comments

Comments
 (0)