File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -233,16 +233,23 @@ class _TransformAppState extends State<TransformApp>
233
233
234
234
animParentController = AnimationController (
235
235
vsync: this , duration: const Duration (milliseconds: 300 ));
236
+
236
237
// Add a status listener
237
238
animController.addStatusListener ((status) {
238
239
if (status == AnimationStatus .completed) {
239
- // Trigger your function here
240
+ animParentController.forward ();
241
+ }
242
+ });
243
+
244
+ animParentController.addStatusListener ((status) {
245
+ if (status == AnimationStatus .completed) {
240
246
print ("animation completed | resetting now" );
241
247
resetAnimation ();
242
248
_changeAnimationListOrder ();
243
- animParentController .forward ();
249
+ animController .forward ();
244
250
}
245
251
});
252
+
246
253
// Combine vertical animations on the first Vinyl!
247
254
_combinedVerticalAnimation = TweenSequence <double >([
248
255
TweenSequenceItem (
You can’t perform that action at this time.
0 commit comments