From ac5c3dec878dca1127cef2c71741e8690ff5de1d Mon Sep 17 00:00:00 2001 From: Polina Cherkasova Date: Tue, 6 Feb 2024 19:26:40 -0800 Subject: [PATCH] Instrument CurvedAnimation. (#143007) --- .../flutter/lib/src/animation/animations.dart | 14 ++++++++++++++ .../flutter/test/animation/animations_test.dart | 15 +++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/packages/flutter/lib/src/animation/animations.dart b/packages/flutter/lib/src/animation/animations.dart index 3ccddd2b1e..93e0124874 100644 --- a/packages/flutter/lib/src/animation/animations.dart +++ b/packages/flutter/lib/src/animation/animations.dart @@ -379,6 +379,15 @@ class CurvedAnimation extends Animation with AnimationWithParentMixin with AnimationWithParentMixin CurvedAnimation( + parent: AnimationController( + duration: const Duration(milliseconds: 100), + vsync: const TestVSync(), + ), + curve: Curves.linear, + ).dispose(), + CurvedAnimation, + ), + areCreateAndDispose, + ); + }); }