Created
June 29, 2015 16:31
-
-
Save abarth/8d79e20866fc25cbd7e0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/sky/sdk/example/mine_digger/lib/main.dart b/sky/sdk/example/mine_digger/lib/main.dart | |
| index aa20563..ad2dc99 100644 | |
| --- a/sky/sdk/example/mine_digger/lib/main.dart | |
| +++ b/sky/sdk/example/mine_digger/lib/main.dart | |
| @@ -4,6 +4,7 @@ | |
| import 'dart:sky' as sky; | |
| import 'dart:math'; | |
| +import 'dart:async'; | |
| import 'package:sky/rendering/flex.dart'; | |
| import 'package:sky/widgets/basic.dart'; | |
| @@ -361,6 +362,9 @@ class MineDiggerApp extends App { | |
| MineDiggerApp() { | |
| game = new Game(this); | |
| + new Timer.periodic(const Duration(milliseconds:20), (_) { | |
| + scheduleBuild(); | |
| + }); | |
| } | |
| Widget build() { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment