Unverified Commit f250db6c authored by jslavitz's avatar jslavitz Committed by GitHub

Adds small fix to Cupertino navigation demo

parent 8d249c25
...@@ -34,10 +34,10 @@ const int _kChildCount = 50; ...@@ -34,10 +34,10 @@ const int _kChildCount = 50;
class CupertinoNavigationDemo extends StatelessWidget { class CupertinoNavigationDemo extends StatelessWidget {
CupertinoNavigationDemo() CupertinoNavigationDemo()
: colorItems = List<Color>.generate(50, (int index) { : colorItems = List<Color>.generate(_kChildCount, (int index) {
return coolColors[math.Random().nextInt(coolColors.length)]; return coolColors[math.Random().nextInt(coolColors.length)];
}) , }) ,
colorNameItems = List<String>.generate(50, (int index) { colorNameItems = List<String>.generate(_kChildCount, (int index) {
return coolColorNames[math.Random().nextInt(coolColorNames.length)]; return coolColorNames[math.Random().nextInt(coolColorNames.length)];
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment