From e5191a109bfb80d1a541da9e1dc9f72954bfa5e4 Mon Sep 17 00:00:00 2001 From: Grant Skinner Date: Mon, 20 Nov 2023 15:05:29 -0800 Subject: [PATCH] Resolve issue with ThenEffect end times per issue #93 --- lib/src/animate.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/animate.dart b/lib/src/animate.dart index cf7756d..0fd253c 100644 --- a/lib/src/animate.dart +++ b/lib/src/animate.dart @@ -254,7 +254,7 @@ class Animate extends StatefulWidget with AnimateManager { _entries.add(entry); _lastEntry = entry; - if (entry.end > _duration) _duration = entry.end; + if (entry.end > _duration && effect is! ThenEffect) _duration = entry.end; return this; } }