Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(723)

Unified Diff: sky/framework/animation/generator.dart

Issue 980043005: fix the hang when clicking the drawer in the stocks app (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/examples/fn/widgets/drawer.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/animation/generator.dart
diff --git a/sky/framework/animation/generator.dart b/sky/framework/animation/generator.dart
index 0b5055050a98bcf8d1ddf73bfd5381dafe0cb2e7..9b83d9fb4f6fa27b69d03537e31a27e7c39d5e58 100644
--- a/sky/framework/animation/generator.dart
+++ b/sky/framework/animation/generator.dart
@@ -66,6 +66,7 @@ class AnimationGenerator extends FrameGenerator {
this.curve: linear,
Function onDone
}):super(onDone: onDone) {
+ assert(duration > 0);
double startTime = 0.0;
_stream = super.onTick.map((timeStamp) {
if (startTime == 0.0)
« no previous file with comments | « sky/examples/fn/widgets/drawer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698