Index: samples/swipe/web/swipe.dart |
diff --git a/samples/swipe/web/swipe.dart b/samples/swipe/web/swipe.dart |
index ee9a329a4f1a56911803bb453ec4a4e9f0baa7ad..8526edbc06e1574ca6cdc32d6a83633987aa609b 100644 |
--- a/samples/swipe/web/swipe.dart |
+++ b/samples/swipe/web/swipe.dart |
@@ -113,7 +113,7 @@ void startSpin(Element figure, int direction) { |
if (timer == null) { |
spinFigure(figure, direction); |
- timer = new Timer.repeating(const Duration(milliseconds: 100), |
+ timer = new Timer.periodic(const Duration(milliseconds: 100), |
(Timer t) => spinFigure(figure, direction)); |
} |
} |