Index: samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart |
diff --git a/samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart b/samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart |
index ce8b254596707cc9743aec78e29bf0b9fda5f7df..2844038aaa9c61563d31ff7edfd25bdfa441fc88 100644 |
--- a/samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart |
+++ b/samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart |
@@ -93,7 +93,7 @@ class AnimationScheduler { |
// Assert that we never schedule multiple frames at once. |
assert(__timer == null); |
if (USE_INTERVALS) { |
- _timer = new Timer.repeating(const Duration(milliseconds: MS_PER_FRAME), |
+ _timer = new Timer.periodic(const Duration(milliseconds: MS_PER_FRAME), |
(_) { _step(); }); |
} else { |
if (_webkitAnimationFrameMaybeAvailable) { |