Index: samples/clock/clock.dart |
diff --git a/samples/clock/clock.dart b/samples/clock/clock.dart |
index 737f68bf5e74e422dfd8f39a6524f47049d3ba41..9a90c2e0b731655b2c37340cd2815f3a6cca3c3b 100644 |
--- a/samples/clock/clock.dart |
+++ b/samples/clock/clock.dart |
@@ -34,9 +34,9 @@ class CountDownClock { |
static const double BALL_WIDTH = 19.0; |
static const double BALL_HEIGHT = 19.0; |
- List<ClockNumber> hours = new List<ClockNumber>(2); |
- List<ClockNumber> minutes = new List<ClockNumber>(2); |
- List<ClockNumber> seconds = new List<ClockNumber>(2); |
+ List<ClockNumber> hours = new List<ClockNumber>.fixedLength(2); |
+ List<ClockNumber> minutes = new List<ClockNumber>.fixedLength(2); |
+ List<ClockNumber> seconds = new List<ClockNumber>.fixedLength(2); |
int displayedHour = 0; |
int displayedMinute = 0; |
int displayedSecond = 0; |